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> |
||
|---|---|---|
| .. | ||
| config | ||
| executors | ||
| handlers | ||
| providers | ||
| rtk | ||
| services | ||
| shared | ||
| transformer | ||
| translator | ||
| utils | ||
| .npmignore | ||
| AGENTS.md | ||
| index.js | ||