mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
* fix(perplexity-web): stop empty-content responses from live schematized SSE Align the request payload and stream parser with the current www.perplexity.ai browser capture so non-streaming pplx-web calls no longer return "Provider returned empty content". - Map pplx-sonar → copilot/turbo (live browser default; experimental was empty) - Advertise workflow_widgets/navigation_results + supports_tool_approval_modal - Use event: end_of_stream as the TLS stream EOF (not OpenAI [DONE]) - Recover answers from COMPLETED FINAL double-encoded text step-blobs - Prefer the longest dual ask_text / ask_text_N_markdown track - Promote buffered SSE text to a ReadableStream when looksLikeSse false-negatives Regression: 31/31 perplexity-web unit tests pass. * fix(sse): satisfy no-explicit-any budget in perplexity-web test additions Two new assertions in the pre-merge sweep used `as any` beyond the file's frozen eslint-suppressions allowance (11); replace them with narrow local result-shape casts so the file stays within the existing budget. Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouzapw@users.noreply.github.com> * test(perplexity-web): replace any with derived types + rebaseline test-file-size Fixes the ~13 @typescript-eslint/no-explicit-any promised in review but never pushed: real interfaces (PplxChatCompletionJson/PplxErrorJson) replace the `as any` json casts, fetch cast uses `typeof fetch`. Removes the now-stale perplexity-web.test.ts entry from eslint-suppressions.json (0 errors, no suppressions). Rebaselines the frozen test-file-size (999 -> 1200) to reflect the PR's own legitimate test growth after merging release/v3.8.49. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com> Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouzapw@users.noreply.github.com> Co-authored-by: artickc <artickc@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>