From 2cb952a7e333f4f4f45ecb55c796f259174a1649 Mon Sep 17 00:00:00 2001 From: "planetrenox@protonmail.com" Date: Mon, 28 Sep 2026 17:43:15 +0000 Subject: [PATCH] Remove Cloudflare inference provider branches, keep key for custom sunes Co-Authored-By: Claude Opus 5.5 --- src/user.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/user.js b/src/user.js index 8a35cd5..391c60c 100644 --- a/src/user.js +++ b/src/user.js @@ -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.'; },