Skip to content

Commit f7eac16

Browse files
committed
fix: revert incorrect OPENCODE_API_KEY from anthropic provider
1 parent 9b27a9f commit f7eac16

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

provider.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,11 @@ func NewProvider(providerName string, apiKey ...string) (Provider, error) {
6767

6868
case "anthropic":
6969
key := providedKey
70-
if key == "" {
71-
key = os.Getenv("OPENCODE_API_KEY")
72-
}
7370
if key == "" {
7471
key = os.Getenv("ANTHROPIC_API_KEY")
7572
}
7673
if key == "" {
77-
return nil, fmt.Errorf("OPENCODE_API_KEY is required for anthropic provider (or use --api-key)")
74+
return nil, fmt.Errorf("ANTHROPIC_API_KEY is required for anthropic provider (or use --api-key)")
7875
}
7976
return NewAnthropic(AnthropicConfig{
8077
Model: getEnvOr("ITERATE_MODEL", "claude-sonnet-4-6"),

0 commit comments

Comments
 (0)