mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix anthropic api key error
This commit is contained in:
parent
adf7681100
commit
10cc15aabe
1 changed files with 1 additions and 1 deletions
|
|
@ -716,7 +716,7 @@ export namespace Provider {
|
|||
}
|
||||
|
||||
if (!options["baseURL"]) options["baseURL"] = model.api.url
|
||||
if (!options["apiKey"]) options["apiKey"] = provider.key
|
||||
if (options["apiKey"] === undefined && provider.key) options["apiKey"] = provider.key
|
||||
if (model.headers)
|
||||
options["headers"] = {
|
||||
...options["headers"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue