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 baseUrl = (providerForm.baseUrl ?? '').trim();
|
||||
if (!baseUrl) {
|
||||
showNotification(t('codex_base_url_required'), 'error');
|
||||
const trimmedBaseUrl = (providerForm.baseUrl ?? '').trim();
|
||||
const baseUrl = trimmedBaseUrl || undefined;
|
||||
if (type === 'codex' && !baseUrl) {
|
||||
showNotification(t('notification.codex_base_url_required'), 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user