fix: test using the correct path for rerank - #2736
Conversation
…ommodate certain channels, such as Codex, which are incompatible with single strings.
WalkthroughThe changes update the default API endpoint path for Jina Rerank service from "/rerank" to "/v1/rerank" across backend configuration and frontend UI components. Test logic in the channel controller was enhanced to detect rerank models and generate appropriate test payloads with JSON message arrays. Changes
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes The diff consists primarily of homogeneous, repetitive string updates (four single-line path changes) paired with straightforward test logic enhancements. Low cognitive complexity with consistent pattern application across multiple files. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* fix: test using the correct path for rerank. * fix: The `input` parameter for testing responses uses an array to accommodate certain channels, such as Codex, which are incompatible with single strings.
fix #2734 #2521
Summary by CodeRabbit
Chores
/rerankto/v1/rerankacross all platform components, including endpoint configurations, UI labels, model templates, and test utilities.✏️ Tip: You can customize this high-level summary in your review settings.