Skip to content

Commit 10cc15a

Browse files
committed
fix anthropic api key error
1 parent adf7681 commit 10cc15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/provider/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ export namespace Provider {
716716
}
717717

718718
if (!options["baseURL"]) options["baseURL"] = model.api.url
719-
if (!options["apiKey"]) options["apiKey"] = provider.key
719+
if (options["apiKey"] === undefined && provider.key) options["apiKey"] = provider.key
720720
if (model.headers)
721721
options["headers"] = {
722722
...options["headers"],

0 commit comments

Comments
 (0)