honcho/tests
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
..
alembic feat: make session_name nullable for documents and update related SDKs (#347) 2026-01-26 13:33:11 -05:00
bench fix: populate test harness DB config from docker compose (#435) 2026-03-19 17:39:57 -04:00
crud feat: implement async workspace deletion with active session checks (#378) 2026-02-12 18:48:00 -05:00
deriver fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
dialectic feat: agentic dreamer and agentic dialectic (#309) 2026-01-12 15:12:17 -05:00
dreamer feat: message ingestion forced-batching (#327) 2026-01-14 14:59:35 -05:00
integration feat: use messages from queue items for rep completed token count (#350) 2026-01-26 18:00:53 -05:00
reconciler fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
routes fix(files): handle empty json uploads safely (#434) 2026-03-18 18:36:34 -04:00
sdk fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
sdk_typescript feat: consolidate db calls in session context (#380) 2026-02-13 11:54:41 -05:00
telemetry switch OTEL metrics to prometheus (#344) 2026-01-25 17:26:42 -05:00
unified 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
webhooks fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
__init__.py [0.0.10] Release 2024-07-25 13:45:27 -04:00
conftest.py fix: Various Codex Audits (#386) 2026-02-13 12:00:15 -05:00
test_advanced_filters.py feat: honcho 3.0, sdks 2.0, excise stainless, update v3 docs, changelogs (#331) 2026-01-22 15:16:28 -05:00
test_datetime_parsing.py create Representation class and use it to unify all formatting (#214) 2025-10-07 15:28:44 -04:00
test_dependencies.py Sanitization and Memory Bug Fixes (#419) 2026-03-18 15:01:52 -04:00
test_schema_validations.py fix: add migration for 'deriver' to 'reasoning' in ResolvedConfiguration (#352) 2026-01-27 11:17:49 -05:00
test_search.py API/SDK updates: configurability, more parameters. Unified test harness (#283) 2025-12-03 16:49:30 -05:00