We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93db65 commit c9397ffCopy full SHA for c9397ff
pkg/openai/client.go
@@ -71,11 +71,11 @@ func complete(opts ...Options) (result Options, err error) {
71
if result.APIKey == "" && key != "" {
72
result.APIKey = key
73
}
74
-
75
- if result.APIKey == "" {
76
- return result, fmt.Errorf("OPENAI_API_KEY is not set. Please set the OPENAI_API_KEY environment variable")
77
- }
78
+
+ if result.APIKey == "" {
+ return result, fmt.Errorf("OPENAI_API_KEY is not set. Please set the OPENAI_API_KEY environment variable")
+ }
79
return result, err
80
81
0 commit comments