mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1446] [MERGED] Fix(openai): tool use issue with latest openai SDK, gpt 5 chat latest might contains incorrect context window size #1893
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/1446
Author: @fdb02983rhy
Created: 8/7/2025
Status: ✅ Merged
Merged: 8/7/2025
Merged by: @crazywoola
Base:
main← Head:fix(openai)-gpt-5-chat-may-contains-incorrect-context-window📝 Commits (6)
007c276Update context size and max_tokens for GPT-5 chatb23db92Bump OpenAI plugin version to 0.2.2c73fd3eUpdate gpt-5-chat-latest.yaml57f4323Replace isinstance checks with duck-typing in LLM17ec18dUpdate llm.py9ad502dUpdate llm.py📊 Changes
3 files changed (+9 additions, -10 deletions)
View changed files
📝
models/openai/manifest.yaml(+1 -1)📝
models/openai/models/llm/gpt-5-chat-latest.yaml(+5 -2)📝
models/openai/models/llm/llm.py(+3 -7)📄 Description
Related Issues or Context
Adjusted context_size and max_tokens in gpt-5-chat-latest.yaml based on API testing and documentation. Added comments to clarify discrepancies between documentation and actual API limits.
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)

My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
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.