(self, prompt, model_id, think_mode, tools)
| 512 | return model_name, cfg["mode"], (think_override if think_override is not None else cfg["think"]), None |
| 513 | |
| 514 | def _call_gemini(self, prompt, model_id, think_mode, tools): |
| 515 | raw = gemini_stream_generate(prompt, model_id, think_mode) |
| 516 | text = extract_response_text(raw) |
| 517 | tool_calls = None |
| 518 | if tools and text: |
| 519 | text, tool_calls = parse_tool_calls(text) |
| 520 | return text or "", tool_calls |
| 521 | |
| 522 | def handle_chat(self, body: bytes): |
| 523 | req = json.loads(body) |
no test coverage detected