mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 20:13:04 +00:00
- Drop multimodal content for non-OpenAI-family providers (Google/Anthropic raised on OpenAI image_url parts) so multimodal requests degrade to text instead of returning 500. - Stateless continuations (no conversation_id) default save_conversation to False, avoiding an orphan conversation with an empty question on every tool round (stateful continuations still default True). - Only strip leaked reasoning from content for structured requests (response_format / json_schema / json_object); legitimate answers that mention the marker text are no longer corrupted. - Forward sampling params (temperature, max_tokens, ...) on continuation turns. - An explicit json_object request clears an agent-configured json_schema so it isn't silently overridden. - Drop max_tokens when max_completion_tokens is also sent (OpenAI rejects both). - Don't build a chatcmpl-None completion id from the placeholder "None" id event.