mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #104] [MERGED] fix: incorrectly uses new_tool_call.function.name while getting existing tool calls #148
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/104
Author: @ExenVitor
Created: 4/17/2025
Status: ✅ Merged
Merged: 4/25/2025
Merged by: @Yeuoly
Base:
main← Head:fix-oai-compat-increase-tool-call-with-fallback📝 Commits (1)
4a0dd86fix: incorrectly uses new_tool_call.function.name while getting existing tool calls📊 Changes
4 files changed (+153 additions, -42 deletions)
View changed files
📝
python/dify_plugin/interfaces/model/openai_compatible/llm.py(+54 -42)➕
python/tests/interfaces/model/__init__.py(+0 -0)➕
python/tests/interfaces/model/openai_compatible/__init__.py(+0 -0)➕
python/tests/interfaces/model/openai_compatible/test_increase_tool_call.py(+99 -0)📄 Description
tool_call_idwhen available.function_nameinstead oftool_call_id), fallback to generating randomtool_call_idfor each new tool call.Ref PR in main repo: #17781
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.