- Date: 2026-08-20
- Type: refactor
- Scope:
openai_responses,minimax_m3 - PR: #181
openai_responses与minimax_m3改为按 content item 的类型走一条if/elif链构造输入项, 并且只在每条消息结束时 flush 一次缓冲文本——也就是gpt5_6原本的写法。文本与图片的前置continue,连同原先在每个顶层项之前执行的那次 flush,一并去掉。- 当一条消息把文本和顶层项(reasoning、function call、function call output)混在一起时,重放顺序
发生变化:文本改为排在该顶层项之后,且被顶层项隔开的两段文本会合并进同一个 message 条目。
assistant 的
[text, tool_call]会重放为[function_call, message],这正是gpt5_6一直以来 发送的形态。只含文本与图片的消息不受影响。
| 消息 | 改动前 | 改动后 |
|---|---|---|
[text, tool_call] |
message、function_call |
function_call、message |
[text, thinking, text, tool_call] |
message、reasoning、message、function_call |
reasoning、function_call、message |
[text, image_url] |
message |
message |
[thinking, text] |
reasoning、message |
reasoning、message |