Skip to content

Commit

Permalink
fixed model parameter defined but not used (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijieli authored Sep 24, 2023
1 parent c8d6022 commit e277eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/ChatGPT.popclipext/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const chat = async (input, options) => {
// send the whole message history to OpenAI
try {
const { data } = await openai.post("chat/completions", {
model: "gpt-3.5-turbo",
model: options.model || "gpt-3.5-turbo",
messages,
});
// add the response to the history
Expand Down
2 changes: 1 addition & 1 deletion source/ChatGPT.popclipext/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const chat: ActionFunction<ChatGPTOptions> = async (input, options) => {
const { data }: Response = await openai.post(
"chat/completions",
{
model: "gpt-3.5-turbo",
model: options.model || "gpt-3.5-turbo",
messages,
},
);
Expand Down

0 comments on commit e277eb3

Please sign in to comment.