mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #479] [MERGED] Fix anthropic thinking mode with tool use chat history arrangement #1392
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/479
Author: @fdb02983rhy
Created: 3/18/2025
Status: ✅ Merged
Merged: 3/18/2025
Merged by: @crazywoola
Base:
main← Head:fix-anthropic-thinking-mode-with-tool-use-chat-history-arrangement📝 Commits (2)
96ec866Update llm.py95131a6Update manifest.yaml📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
models/anthropic/manifest.yaml(+1 -1)📝
models/anthropic/models/llm/llm.py(+1 -1)📄 Description
Fixes: https://github.com/langgenius/dify/issues/16082
The message history should maintain:
Assistant message with tool_use
User message with tool_result
But instead it's creating:
Assistant message with thinking + tool_use + text (duplicating the content)
User message with tool_result
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.