mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Allow apiKey to be empty
This commit is contained in:
5 files changed
+8
-46
No files matched your search
@@ -33,10 +33,6 @@ export function useProviderModels(): ModelFetchResult {
|
||||
|
||||
// Fetch models from each configured provider
|
||||
for (const [providerKey, connection] of Object.entries(settings.providers)) {
|
||||
if (!connection.apiKey) {
|
||||
continue; // Skip providers without API keys
|
||||
}
|
||||
|
||||
try {
|
||||
const openai = new OpenAI({
|
||||
baseURL: connection.baseURL,
|
||||
|
||||
Reference in new issue
Block a user