mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:28:27 +00:00
feat: add cloudflare ai gateway provider
This commit is contained in:
@@ -169,7 +169,11 @@ export async function resolveApiKeyForProfile(params: {
|
||||
}
|
||||
|
||||
if (cred.type === "api_key") {
|
||||
return { apiKey: cred.key, provider: cred.provider, email: cred.email };
|
||||
const key = cred.key?.trim();
|
||||
if (!key) {
|
||||
return null;
|
||||
}
|
||||
return { apiKey: key, provider: cred.provider, email: cred.email };
|
||||
}
|
||||
if (cred.type === "token") {
|
||||
const token = cred.token?.trim();
|
||||
|
||||
Reference in New Issue
Block a user