Skip to content

Commit

Permalink
fix: gpt model issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonghakseo committed Feb 6, 2024
1 parent a4de7ee commit bdd406e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/background/lib/infra/chatGPT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export async function chatGPT({
}

let response = await requestApi(apiKey, {
model:
slot.type === "ChatGPT" ? "gpt-3.5-turbo-1106" : "gpt-4-1106-preview",
model: slot.type === "ChatGPT" ? "gpt-3.5-turbo" : "gpt-4",
max_tokens: slot.maxTokens,
messages,
stream: true,
Expand All @@ -53,7 +52,7 @@ export async function chatGPT({
await handleError(response, async () => {
response = await requestApi(apiKey, {
model:
slot.type === "ChatGPT" ? "gpt-3.5-turbo-1106" : "gpt-4-1106-preview",
slot.type === "ChatGPT" ? "gpt-3.5-turbo-0125" : "gpt-4-turbo-preview",
max_tokens: slot.maxTokens,
messages,
stream: true,
Expand Down

0 comments on commit bdd406e

Please sign in to comment.