dograh/api/services
Mubashir Rahim 6ae9ba5d9e fix(qa): tolerate non-dict JSON from QA LLM instead of crashing
parse_llm_json is explicitly designed to return a list when the model emits a
top-level JSON array (it has a dedicated test for that). The QA analyzers then
call parsed.get("tags", ...) directly on the result. When parsed is a list,
that raises AttributeError, which is NOT caught by the surrounding
except (json.JSONDecodeError, ValueError) — so a single stray array response
from the QA model crashed the entire QA analysis run instead of degrading to
empty results.

The live variable-extraction path already guards this exact case with an
isinstance(..., dict) check; mirror it in both QA analysis call sites
(_run_qa_analysis per-node and _run_whole_call_qa_analysis fallback) so a
non-dict parse result coerces to {} and the run produces empty defaults.

Adds a regression test that drives the whole-call analyzer with an array
response and asserts empty results rather than a crash.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 14:24:03 +05:00
..
auth feat: add agent skills to review PR (#320) 2026-05-19 17:02:26 +05:30
campaign chore: return formatted transcript url 2026-05-26 13:24:12 +05:30
configuration feat: add Azure AI multi-provider support (TTS, STT, Embeddings, Realtime) (#381) 2026-06-02 12:50:00 +05:30
filesystem chore: bump pipecat version and fix tests (#263) 2026-05-04 21:35:37 +05:30
gen_ai feat: add Azure AI multi-provider support (TTS, STT, Embeddings, Realtime) (#381) 2026-06-02 12:50:00 +05:30
gender Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
integrations fix timestamps in tuner accumelator (#335) 2026-05-21 07:43:50 +05:30
pipecat feat: add Azure AI multi-provider support (TTS, STT, Embeddings, Realtime) (#381) 2026-06-02 12:50:00 +05:30
pricing Add Sarvam LLM, update Sarvam STT models, expose usage_info on run detail (#351) 2026-06-01 10:29:31 +05:30
reports chore: return formatted transcript url 2026-05-26 13:24:12 +05:30
telephony chore: format release please changelogs 2026-06-02 13:42:55 +05:30
voice_prompting_guide feat: add mcp guides for various topic and stages for bot building (#380) 2026-05-31 16:07:32 +05:30
worker_sync feat: add worker sync events 2026-04-04 14:26:47 +05:30
workflow fix(qa): tolerate non-dict JSON from QA LLM instead of crashing 2026-06-03 14:24:03 +05:00
mps_service_key_client.py fix: fix service key validation in OSS (#371) 2026-05-28 08:09:35 +05:30
posthog_client.py feat: add posthog signup and signin events, enable backend posthog events for oss version (#249) 2026-04-24 12:02:52 +05:30
quota_service.py feat: enable FORCE_TURN_RELAY to diagnose turn connectivity for local deployment setups (#272) 2026-05-11 17:13:01 +05:30
storage.py chore: bump pipecat version and fix tests (#263) 2026-05-04 21:35:37 +05:30
tool_management.py feat: create tools using MCP 2026-05-31 16:50:44 +05:30