Skip to content

Commit

Permalink
fix: client option
Browse files Browse the repository at this point in the history
  • Loading branch information
freesrz93 committed Aug 15, 2024
1 parent 398a720 commit ac35dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func NewClient(opt *BackendOption) *Client {
cfg := openai.DefaultConfig(opt.APIKey)
cfg.BaseURL = opt.BaseURL
return &Client{Client: openai.NewClientWithConfig(cfg)}
return &Client{BackendOption: opt, Client: openai.NewClientWithConfig(cfg)}
}

type Client struct {
Expand Down

0 comments on commit ac35dde

Please sign in to comment.