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
2 people authored and eliben committed Apr 19, 2024
1 parent 62afdf1 commit 0425ed0
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 0425ed0

Please sign in to comment.