mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 18:47:41 +08:00
* fix: support both old and new Bailian Rerank API response formats The new compatible API (compatible-api/v1/reranks) returns results at the top level as data.results, while the old API returns them nested under data.output.results. The parser only checked the old path, causing qwen3-rerank to always report empty results. Fixes #7161 * Update astrbot/core/provider/sources/bailian_rerank_source.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: Ruochen Pan <badbatch0x01@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>