nanochat/services
Manmohan Sharma 4628d53d67
fix(tools): force web_search on tool-worthy queries + strip orphan markers in UI
Adds modal/_query_classifier.py with regex patterns covering time-sensitive queries (current/present/latest/today/weather/CEO/president/stock/news/sports/etc). Modal serve.py classifies each user message and, when it matches, pre-seeds the assistant turn with a real Tavily-backed tool call + result — so 'whos the present president' now triggers web_search the same as 'current president'. Also tightens the post-injection break to fire on any leaked tool marker. UI: MessageBubble.tsx now strips orphan close-tags (<|output_end|> without an open), dedupes consecutive identical tool-result blocks, and removes fragment markers from text segments so they don't leak into the message body.
2026-04-22 15:01:07 -07:00
..
auth Merge pull request #26 from manmohan659/fix/missing-models 2026-04-16 16:50:22 -04:00
chat-api feat: deploy d24-sft-r6 with full reasoning mode + live tool use (Tavily) 2026-04-22 13:43:43 -07:00
frontend fix(tools): force web_search on tool-worthy queries + strip orphan markers in UI 2026-04-22 15:01:07 -07:00
inference fix(inference): regenerate uv.lock after structlog/prometheus deps added 2026-04-16 12:49:05 -07:00