honcho/src
Vineeth Voruganti 744a20de0a fix: Add JSON repair for truncated LLM responses across all providers and Gemini thinking budget support
LengthFinishReasonError from OpenAI-compatible providers (custom, openai, groq) was crashing the deriver
with 14k+ occurrences in production. The vLLM path already had repair logic but it was gated on
provider=="vllm", unreachable when routing through litellm as a custom provider.

- Extract shared _repair_response_model_json() helper for all providers
- Catch LengthFinishReasonError in OpenAI/custom parse() path and repair truncated JSON
- Add repair fallback to Anthropic and Gemini response_model paths
- Add repair fallback to Groq response_model path
- Pass thinking_budget_tokens to Gemini 2.5 models via thinking_config
- Add 14 tests covering repair paths for all providers and Gemini thinking budget

Fixes HONCHO-YC

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 16:24:34 -04:00
..
cache perf: add redis caching and reduce embedding API calls (#372) 2026-02-13 00:53:46 -05:00
crud Use savepoints to prevent race condition in get_or_create chain (#399) 2026-02-23 23:28:04 -05:00
deriver fix: only emit CleanupStaleItemsCompletedEvent if queue item was deleted (#454) 2026-03-26 16:12:36 -04:00
dialectic perf: add redis caching and reduce embedding API calls (#372) 2026-02-13 00:53:46 -05:00
dreamer Add Stricter limits to Summary & Peer Card (#400) 2026-02-25 15:08:09 -05:00
reconciler fix: only emit CleanupStaleItemsCompletedEvent if queue item was deleted (#454) 2026-03-26 16:12:36 -04:00
routers Use savepoints to prevent race condition in get_or_create chain (#399) 2026-02-23 23:28:04 -05:00
schemas Sanitization and Memory Bug Fixes (#419) 2026-03-18 15:01:52 -04:00
telemetry fix: Remove noisy sentry error on llm failure and upgrade deps (#396) 2026-02-23 15:53:29 -05:00
utils fix: Add JSON repair for truncated LLM responses across all providers and Gemini thinking budget support 2026-03-26 16:24:34 -04:00
vector_store chore: lazy-load imports (#345) 2026-01-26 11:35:41 -05:00
webhooks feat: codify queue columns (#254) 2025-11-07 13:22:24 -05:00
__init__.py v0.0.8 Documentation Updates (#55) 2024-05-15 00:07:25 -04:00
config.py fix: make FLUSH_ENABLED a config value (#361) 2026-02-03 10:53:14 -05:00
db.py Standardize DB Constraint Conventions (#272) 2025-11-20 11:50:54 -05:00
dependencies.py Sanitization and Memory Bug Fixes (#419) 2026-03-18 15:01:52 -04:00
embedding_client.py feat: agentic dreamer and agentic dialectic (#309) 2026-01-12 15:12:17 -05:00
exceptions.py Turbopuffer and LanceDB Integration (#287) 2026-01-16 17:04:01 -05:00
main.py fix: Update Changelogs and OpenAPI Docs (#412) 2026-02-25 22:16:44 -05:00
models.py feat: make session_name nullable for documents and update related SDKs (#347) 2026-01-26 13:33:11 -05:00
security.py fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00