Add baidu qianfan model provider

This commit is contained in:
ideoutrea
2026-02-04 16:36:37 +08:00
parent f04e84f194
commit 30ac80b96b
12 changed files with 550 additions and 2 deletions

View File

@@ -178,3 +178,15 @@ export async function setOpencodeZenApiKey(key: string, agentDir?: string) {
agentDir: resolveAuthAgentDir(agentDir),
});
}
export function setQianfanApiKey(key: string, agentDir?: string) {
upsertAuthProfile({
profileId: "qianfan:default",
credential: {
type: "api_key",
provider: "qianfan",
key,
},
agentDir: resolveAuthAgentDir(agentDir),
});
}