Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
saiyam1814 committed Feb 14, 2024
1 parent a93db65 commit c9397ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/openai/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ func complete(opts ...Options) (result Options, err error) {
if result.APIKey == "" && key != "" {
result.APIKey = key
}
if result.APIKey == "" {
return result, fmt.Errorf("OPENAI_API_KEY is not set. Please set the OPENAI_API_KEY environment variable")
}

if result.APIKey == "" {
return result, fmt.Errorf("OPENAI_API_KEY is not set. Please set the OPENAI_API_KEY environment variable")
}

return result, err
}

Expand Down

0 comments on commit c9397ff

Please sign in to comment.