Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Dec 21, 2023
1 parent 56da378 commit a766086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llm/openai/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func (o *Legacy) Chat(ctx context.Context, prompt *chat.Chat) (string, error) {
}

if len(o.functions) > 0 {
//nolint:staticcheck
chatCompletionRequest.Functions = o.getFunctions()
}

Expand Down

0 comments on commit a766086

Please sign in to comment.