Remove Cloudflare inference provider branches, keep key for custom sunes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 17:43:15 +00:00
co-authored by Claude Opus 5.5
parent 609f84017f
commit 2cb952a7e3
+1 -2
View File
@@ -18,14 +18,13 @@ export const USER = {
set apiKeyCloudflare(v) { localStorage.setItem('cloudflare_api_key', v || ''); },
get apiKey() {
const p = this.provider;
return p === 'openai' ? this.apiKeyOpenAI : p === 'google' ? this.apiKeyGoogle : p === 'claude' ? this.apiKeyClaude : p === 'cloudflare' ? this.apiKeyCloudflare : this.apiKeyOpenRouter;
return p === 'openai' ? this.apiKeyOpenAI : p === 'google' ? this.apiKeyGoogle : p === 'claude' ? this.apiKeyClaude : this.apiKeyOpenRouter;
},
set apiKey(v) {
const p = this.provider;
if (p === 'openai') this.apiKeyOpenAI = v;
else if (p === 'google') this.apiKeyGoogle = v;
else if (p === 'claude') this.apiKeyClaude = v;
else if (p === 'cloudflare') this.apiKeyCloudflare = v;
else this.apiKeyOpenRouter = v;
},
get masterPrompt() { return localStorage.getItem('master_prompt') || 'Always respond using markdown.'; },