Claude Code chèn role:system cuối messages[], trước đây bị map thành assistant khiến hội thoại không kết thúc bằng user → provider OpenAI-compat (LiteLLM) dịch ngược Anthropic trả 400 "assistant message prefill". Map system -> user và wrap <system-reminder> để giữ ngữ nghĩa instruction. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| concerns | ||
| formats | ||
| request | ||
| response | ||
| schema | ||
| formats.js | ||
| index.js | ||