mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1493] [MERGED] fix: Azure AI Studio Cohere reranker model integration with v2 API support #1924
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1493
Author: @honjo-hiroaki-gtt
Created: 8/12/2025
Status: ✅ Merged
Merged: 8/13/2025
Merged by: @crazywoola
Base:
main← Head:fix-issue-695📝 Commits (2)
15554defix: Resolve issue #695846056eBump version to 0.0.4📊 Changes
2 files changed (+78 additions, -21 deletions)
View changed files
📝
models/azure_ai_studio/manifest.yaml(+1 -1)📝
models/azure_ai_studio/models/rerank/rerank.py(+77 -20)📄 Description
Related Issues or Context
Fixes #695 - Azure AI Studio (Azure AI Foundry) reranker model integration was failing with 404 errors due to incorrect API endpoint paths and missing required request fields for Cohere models.
Adding a Rerank model to the Azure AI Studio plugin successfully adds the model without any issues.

This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
Testing Details:
What's Changed:
/v2/rerankfor Azure AI Foundry Cohere models when needed{"inputs": query, "docs": docs}to correct format{"query": query, "documents": docs, "model": "model"}{"results": [{"index": ..., "relevance_score": ...}]}/v2/rerank,/v1/rerank,/rerank, and/scorepatternstop_nparameter to the API requestThis PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.