update auth and provider configuration

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-05 20:11:27 -04:00
parent 65b2cf73d7
commit 16520261f4
2 changed files with 26 additions and 10 deletions

View File

@@ -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",
},
}