fix(coding-agent): allow auth oauth without apiKey in models.yml
This commit is contained in:
@@ -66,7 +66,7 @@ export function validateProviderConfiguration(
|
||||
const requiresAuth =
|
||||
mode === "runtime-register"
|
||||
? !config.apiKey && !config.oauthConfigured
|
||||
: !config.apiKey && (config.auth ?? "apiKey") !== "none";
|
||||
: !config.apiKey && (config.auth ?? "apiKey") !== "none" && (config.auth ?? "apiKey") !== "oauth";
|
||||
if (requiresAuth) {
|
||||
throw new Error(
|
||||
mode === "runtime-register"
|
||||
|
||||
Reference in New Issue
Block a user