Add xAI as chat completion source

This commit is contained in:
Cohee
2025-04-10 22:59:10 +03:00
parent c3b1573c91
commit 1c52099ed6
11 changed files with 120 additions and 12 deletions

View File

@ -413,7 +413,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) {
}
}
const system_instruction = { parts: [{ text: sys_prompt.trim() }]};
const system_instruction = { parts: [{ text: sys_prompt.trim() }] };
const toolNameMap = {};
const contents = [];