Skip to content

Commit

Permalink
fix: fixed model not condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmariano committed Jul 20, 2024
1 parent d1a98e3 commit 307067b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions g4f.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ func (c *Client) GPT4Free(ctx context.Context, req *G4FRequest) (*GabsContainer,
if len(req.Messages) == 0 {
return nil, ErrGroqChatCompletionNoMessage
}
if req.Model == "" {
return nil, ErrModelNotFound
}
body, err := c.newJSONPostRequest(ctx, "/gpt4free", "", req)
if err != nil {
return nil, err
Expand Down

0 comments on commit 307067b

Please sign in to comment.