Skip to content

Commit

Permalink
Refactor useChatCompletion to include apiKey, model, and mode in its …
Browse files Browse the repository at this point in the history
…dependency array
  • Loading branch information
Royal-lobster committed Nov 25, 2023
1 parent 059cfe4 commit 932599d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useChatCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useChatCompletion = ({
modelName: model,
temperature: Number(mode),
}),
[],
[apiKey, model, mode],
)

const previousMessages = messages.map((msg) => {
Expand Down

0 comments on commit 932599d

Please sign in to comment.