fix:Add a new vendor page, API endpoint, and model name. (#1155)

* fix:Add a new vendor page, API endpoint, and model name. Fix the bug where, after entering characters, line breaks cannot be fully deleted.

* fix: add missing i18n key codexConfig.modelNameHint for zh/en/ja

---------

Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
wugeer
2026-03-07 22:53:44 +08:00
committed by GitHub
parent 33d5f6985d
commit fb8996d19c
8 changed files with 101 additions and 34 deletions
@@ -60,10 +60,8 @@ export function useBaseUrlState({
if (!codexConfig) return;
const extracted = extractCodexBaseUrl(codexConfig) || "";
if (extracted !== codexBaseUrl) {
setCodexBaseUrl(extracted);
}
}, [appType, category, codexConfig, codexBaseUrl]);
setCodexBaseUrl((prev) => (prev === extracted ? prev : extracted));
}, [appType, category, codexConfig]);
// 从Claude配置同步到 stateGemini
useEffect(() => {
@@ -116,7 +114,7 @@ export function useBaseUrlState({
const sanitized = url.trim();
setCodexBaseUrl(sanitized);
if (!sanitized || !onCodexConfigChange) {
if (!onCodexConfigChange) {
return;
}