mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-17 05:24:50 +08:00
Mark US-008 complete: kimi-k2.5 API compatibility fix
- translate_message now conditionally includes is_error field - kimi models (kimi-k2.5, kimi-k1.5, etc.) exclude is_error - Other models (openai, grok, xai) keep is_error support
This commit is contained in:
17
prd.json
17
prd.json
@@ -99,6 +99,23 @@
|
|||||||
],
|
],
|
||||||
"passes": true,
|
"passes": true,
|
||||||
"priority": "P2"
|
"priority": "P2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "US-008",
|
||||||
|
"title": "Fix kimi-k2.5 model API compatibility",
|
||||||
|
"description": "The kimi-k2.5 model (and other kimi models) reject API requests containing the is_error field in tool result messages. The OpenAI-compatible provider currently always includes is_error for all models. Need to make this field conditional based on model support.",
|
||||||
|
"acceptanceCriteria": [
|
||||||
|
"translate_message function accepts model parameter",
|
||||||
|
"is_error field excluded for kimi models (kimi-k2.5, kimi-k1.5, etc.)",
|
||||||
|
"is_error field included for models that support it (openai, grok, xai, etc.)",
|
||||||
|
"build_chat_completion_request passes model to translate_message",
|
||||||
|
"Tests verify is_error presence/absence based on model",
|
||||||
|
"cargo test passes",
|
||||||
|
"cargo clippy passes",
|
||||||
|
"cargo fmt passes"
|
||||||
|
],
|
||||||
|
"passes": true,
|
||||||
|
"priority": "P0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user