mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-02 19:00:49 +08:00
fix(ai-providers): allow empty Claude base URL
This commit is contained in:
@@ -903,9 +903,10 @@ export function AiProvidersPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const saveProvider = async (type: 'codex' | 'claude') => {
|
const saveProvider = async (type: 'codex' | 'claude') => {
|
||||||
const baseUrl = (providerForm.baseUrl ?? '').trim();
|
const trimmedBaseUrl = (providerForm.baseUrl ?? '').trim();
|
||||||
if (!baseUrl) {
|
const baseUrl = trimmedBaseUrl || undefined;
|
||||||
showNotification(t('codex_base_url_required'), 'error');
|
if (type === 'codex' && !baseUrl) {
|
||||||
|
showNotification(t('notification.codex_base_url_required'), 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user