Skip to content

Commit

Permalink
if (!(isO1 && v.role === "system"))
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkSchlossmacher committed Dec 30, 2024
1 parent 9ae9bc1 commit fa197e4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ export class ChatGPTApi implements LLMApi {
const content = visionModel
? await preProcessImageContent(v.content)
: getMessageTextContent(v);
if (!isO1final && !(isO1 && v.role === "system"))
messages.push({ role: v.role, content });
if ((isO1final && v.role === "system"))
// messages.push({ role: "developer", content });
}
if (!(isO1 && v.role === "system"))
messages.push({ role: v.role, content });
}

// O1 not support image, tools (plugin in ChatGPTNextWeb) and system, stream, logprobs, temperature, top_p, n, presence_penalty, frequency_penalty yet.
requestPayload = {
Expand Down

0 comments on commit fa197e4

Please sign in to comment.