mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-13 07:40:18 +00:00
Add Gemini 3 models with thought-signature support
Signatures ride the assistant message as a _gemini sidecar and are reattached in tool loops. Thought-flagged parts are filtered from answer text; foreign sidecars stripped on the OpenAI wire. Live-verified both Gemini 3 models end-to-end; without the echo they 400 on every tool loop.
This commit is contained in:
@@ -896,6 +896,10 @@ def _assistant_message(turn: AssistantTurn) -> dict[str, Any]:
|
||||
"content": turn.text or "",
|
||||
"ts": time.time(),
|
||||
}
|
||||
if turn.extras:
|
||||
# Provider-private sidecars (e.g. `_gemini` thought signatures) persist with the
|
||||
# message; the owning provider reattaches them, the rest strip them (base.py).
|
||||
message.update(turn.extras)
|
||||
if turn.tool_calls:
|
||||
message["tool_calls"] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user