mirror of
https://github.com/sune-org/sune.git
synced 2026-10-17 15:47:53 +00:00
This build was committed by a bot.
This commit is contained in:
@@ -504,14 +504,13 @@ var USER = {
|
||||
},
|
||||
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() {
|
||||
Reference in New Issue
Block a user