feat(llm): have OpenAI provider not require API keys (for endpoints like LM Studio)

This commit is contained in:
perf3ct
2025-06-06 19:22:39 +00:00
parent c26b74495c
commit 85cfc8fbd4
4 changed files with 30 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ export async function validateEmbeddingProviders(validationWarning: HTMLElement)
// Check OpenAI configuration
const apiKey = options.get('openaiApiKey');
if (!apiKey) {
configIssues.push(`OpenAI API key is missing`);
configIssues.push(`OpenAI API key is missing (optional for OpenAI-compatible endpoints)`);
}
} else if (provider === 'anthropic') {
// Check Anthropic configuration