mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 08:33:10 +00:00
update auth and provider configuration
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
@@ -76,12 +76,12 @@ export namespace Provider {
|
||||
(provider: Info) => Promise<Record<string, any> | false>
|
||||
> = {
|
||||
anthropic: async () => {
|
||||
const result = await AuthAnthropic.load()
|
||||
if (result)
|
||||
const access = await AuthAnthropic.access()
|
||||
if (access)
|
||||
return {
|
||||
apiKey: "",
|
||||
headers: {
|
||||
authorization: `Bearer ${result.accessToken}`,
|
||||
authorization: `Bearer ${access}`,
|
||||
"anthropic-beta": "oauth-2025-04-20",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user