- _has_unclosed_code_fence() now scans every line with re.search and a shared FENCE_RUN regex, so an inline opening fence such as "First, let me write it. \`\`\`python" is tracked alongside the column-0 openers. A numbered list emitted INSIDE an inline-open fence no longer reads as a final answer. - _DIRECT_NUMBERED_PLAN_FRAMING adds "first" and "step N(:?)" to its intent prefixes and "look up" to its verb whitelist. Plans like "First, analyze the uploaded CSV:\n1. Load rows\n2. Compute total" or "I'll look that up:\n1. Search the docs" now re-prompt instead of being mis-classified as final answers. The verb whitelist still excludes bare search/find/check/verify so "First, use binary search:\n1. Search the left half" stays an answer. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _html_to_md.py | ||
| anthropic_compat.py | ||
| audio_codecs.py | ||
| chat_template_helpers.py | ||
| defaults.py | ||
| external_provider.py | ||
| inference.py | ||
| key_exchange.py | ||
| llama_cpp.py | ||
| llama_server_args.py | ||
| mlx_inference.py | ||
| orchestrator.py | ||
| pricing.py | ||
| providers.py | ||
| safetensors_agentic.py | ||
| tool_call_parser.py | ||
| tools.py | ||
| worker.py | ||