feat: (1) fix issues/4335 and issues/4518

This commit is contained in:
butterfly
2024-04-16 14:50:48 +08:00
parent fd8d0a1746
commit fb8b8d28da
4 changed files with 36 additions and 22 deletions

View File

@@ -348,7 +348,11 @@ export class ClaudeApi implements LLMApi {
path(path: string): string {
const accessStore = useAccessStore.getState();
let baseUrl: string = accessStore.anthropicUrl;
let baseUrl: string = "";
if (accessStore.useCustomConfig) {
baseUrl = accessStore.anthropicUrl;
}
// if endpoint is empty, use default endpoint
if (baseUrl.trim().length === 0) {