mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 00:41:36 +00:00
feat: add cloudflare ai gateway provider
This commit is contained in:
@@ -80,7 +80,7 @@ function resolveModelAuthLabel(
|
||||
const snippet = formatApiKeySnippet(profile.token);
|
||||
return `token ${snippet}${label ? ` (${label})` : ""}`;
|
||||
}
|
||||
const snippet = formatApiKeySnippet(profile.key);
|
||||
const snippet = formatApiKeySnippet(profile.key ?? "");
|
||||
return `api-key ${snippet}${label ? ` (${label})` : ""}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ export const resolveAuthLabel = async (
|
||||
|
||||
if (profile.type === "api_key") {
|
||||
return {
|
||||
label: `${profileId} api-key ${maskApiKey(profile.key)}${more}`,
|
||||
label: `${profileId} api-key ${maskApiKey(profile.key ?? "")}${more}`,
|
||||
source: "",
|
||||
};
|
||||
}
|
||||
@@ -154,7 +154,7 @@ export const resolveAuthLabel = async (
|
||||
}
|
||||
if (profile.type === "api_key") {
|
||||
const suffix = flags.length > 0 ? ` (${flags.join(", ")})` : "";
|
||||
return `${profileId}=${maskApiKey(profile.key)}${suffix}`;
|
||||
return `${profileId}=${maskApiKey(profile.key ?? "")}${suffix}`;
|
||||
}
|
||||
if (profile.type === "token") {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user