mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 15:40:20 +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) {
|
||||
return null;
|
||||
}
|
||||
await setVolcengineApiKey(resolved.key);
|
||||
if (resolved.source !== "profile") {
|
||||
await setVolcengineApiKey(resolved.key);
|
||||
}
|
||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||
profileId: "volcengine:default",
|
||||
provider: "volcengine",
|
||||
@@ -365,7 +367,9 @@ export async function applyNonInteractiveAuthChoice(params: {
|
||||
if (!resolved) {
|
||||
return null;
|
||||
}
|
||||
await setByteplusApiKey(resolved.key);
|
||||
if (resolved.source !== "profile") {
|
||||
await setByteplusApiKey(resolved.key);
|
||||
}
|
||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||
profileId: "byteplus:default",
|
||||
provider: "byteplus",
|
||||
@@ -409,7 +413,9 @@ export async function applyNonInteractiveAuthChoice(params: {
|
||||
if (!resolved) {
|
||||
return null;
|
||||
}
|
||||
await setOpenaiApiKey(resolved.key);
|
||||
if (resolved.source !== "profile") {
|
||||
await setOpenaiApiKey(resolved.key);
|
||||
}
|
||||
nextConfig = applyAuthProfileConfig(nextConfig, {
|
||||
profileId: "openai:default",
|
||||
provider: "openai",
|
||||
|
||||
Reference in New Issue
Block a user