Skip to content

Commit c9397ff

Browse files
committed
format
1 parent a93db65 commit c9397ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/openai/client.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ func complete(opts ...Options) (result Options, err error) {
7171
if result.APIKey == "" && key != "" {
7272
result.APIKey = key
7373
}
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-
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+
7979
return result, err
8080
}
8181

0 commit comments

Comments
 (0)