mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 06:52:44 +00:00
Onboard non-interactive: avoid rewriting profile-backed keys
This commit is contained in:
committed by
Peter Steinberger
parent
59e5f12bf9
commit
13b4993289
@@ -344,7 +344,9 @@ export async function applyNonInteractiveAuthChoice(params: {
|
|||||||
if (!resolved) {
|
if (!resolved) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
await setVolcengineApiKey(resolved.key);
|
if (resolved.source !== "profile") {
|
||||||
|
await setVolcengineApiKey(resolved.key);
|
||||||
|
}
|
||||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||||
profileId: "volcengine:default",
|
profileId: "volcengine:default",
|
||||||
provider: "volcengine",
|
provider: "volcengine",
|
||||||
@@ -365,7 +367,9 @@ export async function applyNonInteractiveAuthChoice(params: {
|
|||||||
if (!resolved) {
|
if (!resolved) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
await setByteplusApiKey(resolved.key);
|
if (resolved.source !== "profile") {
|
||||||
|
await setByteplusApiKey(resolved.key);
|
||||||
|
}
|
||||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||||
profileId: "byteplus:default",
|
profileId: "byteplus:default",
|
||||||
provider: "byteplus",
|
provider: "byteplus",
|
||||||
@@ -409,7 +413,9 @@ export async function applyNonInteractiveAuthChoice(params: {
|
|||||||
if (!resolved) {
|
if (!resolved) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
await setOpenaiApiKey(resolved.key);
|
if (resolved.source !== "profile") {
|
||||||
|
await setOpenaiApiKey(resolved.key);
|
||||||
|
}
|
||||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||||
profileId: "openai:default",
|
profileId: "openai:default",
|
||||||
provider: "openai",
|
provider: "openai",
|
||||||
|
|||||||
Reference in New Issue
Block a user