Skip to content

Commit

Permalink
Fix OpenAI createChat bug (#759)
Browse files Browse the repository at this point in the history
Co-authored-by: Pramodh-G <[email protected]>
  • Loading branch information
Pramodh-G and Pramodh-G authored Apr 18, 2024
1 parent ab8bf7a commit 54ded0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llms/openai/internal/openaiclient/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (c *Client) createChat(ctx context.Context, payload *ChatRequest) (*ChatCom
if c.baseURL == "" {
c.baseURL = defaultBaseURL
}
req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.buildURL("/chat/completions", c.Model), body)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.buildURL("/chat/completions", payload.Model), body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 54ded0d

Please sign in to comment.