mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #85] [CLOSED] fix: invalid new tool call creation logic during streaming response handling in OAI-Compat model. #132
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-plugin-sdks/pull/85
Author: @ExenVitor
Created: 4/9/2025
Status: ❌ Closed
Base:
main← Head:fix-oai-compat-increase-tool-call📝 Commits (1)
fd788fffix: incorrectly uses new_tool_call.function.name while getting existing tool calls📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
python/dify_plugin/interfaces/model/openai_compatible/llm.py(+1 -1)📄 Description
Differentiate new tool call instance by function name rather than tool call ID.
Sync logic from Dify main project:
https://github.com/langgenius/dify/blob/c9f18aae0fca88ec7c440e60b6153333a64d14bb/api/core/model_runtime/model_providers/__base/large_language_model.py#L112C17-L142C1
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.