mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: use a named case
This commit is contained in:
@@ -67,7 +67,7 @@ export function selectAIProvider(config: { apiUrl: string; apiKey: string }) {
|
||||
baseURL: config.apiUrl,
|
||||
apiKey: config.apiKey,
|
||||
});
|
||||
default:
|
||||
case "custom":
|
||||
return createOpenAICompatible({
|
||||
name: "custom",
|
||||
baseURL: config.apiUrl,
|
||||
@@ -75,5 +75,7 @@ export function selectAIProvider(config: { apiUrl: string; apiKey: string }) {
|
||||
Authorization: `Bearer ${config.apiKey}`,
|
||||
},
|
||||
)};
|
||||
case default:
|
||||
throw new Error(`Unsupported AI provider for URL: ${config.apiUrl}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user