项目文件夹

文件
Simon Willison aae4eedf16 OpenAI: reconstruct conversation input history via prev.prompt.messages
Iterate prev_response.prompt.messages (the computed Message list) to
rebuild prior turn inputs, and funnel each through
_append_message_from_message. Output side still uses the flat text /
tool_calls accumulators (text_or_raise, tool_calls_or_raise) to avoid
calling _build_parts on historical responses whose StreamEvent shape
might have used the same part_index for mixed content types.
2026-04-12 21:20:57 -07:00
..