support for custom baseURL for OpenAI

fix messages' type in context chain
This commit is contained in:
2026-02-04 12:16:31 +03:00
parent fc5478b5ec
commit 3c7d56b213
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export class OpenAIChat extends ChatCommand {
const chatMessages = messageParts.map(part => {
const content = [];
content.push({
type: "input_text",
type: part.bot ? "output_text" : "input_text",
text: (Environment.USE_NAMES_IN_PROMPT && !part.bot ? `MESSAGE FROM USER "${part.name}":\n` : "") + part.content,
});