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
@@ -25,7 +25,7 @@ export function useAIProjectId({ onError }: UseAIProjectIdOptions = {}) {
|
||||
// Use first available provider as fallback
|
||||
const providers = settings.providers || {};
|
||||
const firstProvider = Object.keys(providers)[0];
|
||||
if (!firstProvider || !providers[firstProvider]?.apiKey) {
|
||||
if (!firstProvider) {
|
||||
throw new Error('No configured AI providers available');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user