fix: convert system message content to string for Copilot provider (#11600)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jigar
2026-02-02 10:58:28 +05:30
committed by GitHub
parent 7a9290dc9b
commit 43354eeabd
2 changed files with 19 additions and 6 deletions

View File

@@ -18,12 +18,7 @@ export function convertToOpenAICompatibleChatMessages(prompt: LanguageModelV2Pro
case "system": {
messages.push({
role: "system",
content: [
{
type: "text",
text: content,
},
],
content: content,
...metadata,
})
break