[PR #1754] [MERGED] feat(openrouter): add Grok 4 Fast Free model and update gpt-5-chat configuration #2064

Closed
opened 2026-02-16 11:16:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1754
Author: @orangeclk
Created: 9/23/2025
Status: Merged
Merged: 9/24/2025
Merged by: @crazywoola

Base: mainHead: openrouter-grok4fast


📝 Commits (6)

  • f4fc78b feat(openrouter): update GPT-5 models with new parameters and features
  • a4af2a5 Merge branch 'langgenius:main' into main
  • b75998e Merge branch 'langgenius:main' into main
  • ac13523 feat(openrouter): add Grok 4 Fast Free model and update GPT-5 configuration
  • 517d8e4 Merge branch 'langgenius:main' into openrouter-grok4fast
  • bb0d9f8 feat(openrouter): update GPT-5 model configuration and version bump

📊 Changes

5 files changed (+85 additions, -31 deletions)

View changed files

📝 models/openrouter/manifest.yaml (+1 -1)
📝 models/openrouter/models/llm/_position.yaml (+1 -0)
📝 models/openrouter/models/llm/gpt-5-chat.yaml (+1 -30)
models/openrouter/models/llm/grok-4-fast-free.yaml (+80 -0)
📝 models/openrouter/models/llm/llm.py (+2 -0)

📄 Description

feat(openrouter): add Grok 4 Fast Free model and update GPT-5 configuration

  • Add grok-4-fast-free model to position configuration
  • Update gpt-5-chat context size from 400K to 128K tokens
  • Remove unsupported gpt-5-chat parameters (json_schema, reasoning_effort, exclude_reasoning_tokens)
  • Add boolean enable_thinking parameter handling in OpenRouter LLM
  • Updated GPT-5 model configuration by removing multi-tool-call and stream-tool-call features

Related Issues or Context

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • 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.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)

https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest

Gpt-5-chat doesn't support structured outputs.

image image
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)

https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest
image

Gpt-5-chat doesn't support reasoning.

  • Other Changes (Add New Models, Fix Model Parameters etc.)

https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest

image

Gpt-5 doesn't support function call.

image The context window of gpt-5-chat is 128,000 other than 400,000. image

Add grok-4-fast

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.5.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 2.0.0-beta2, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/1754 **Author:** [@orangeclk](https://github.com/orangeclk) **Created:** 9/23/2025 **Status:** ✅ Merged **Merged:** 9/24/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `openrouter-grok4fast` --- ### 📝 Commits (6) - [`f4fc78b`](https://github.com/langgenius/dify-official-plugins/commit/f4fc78b48f5e849a1d8c5fdf72bdc319f30ed542) feat(openrouter): update GPT-5 models with new parameters and features - [`a4af2a5`](https://github.com/langgenius/dify-official-plugins/commit/a4af2a50e913f5ffa26cc7e3092ade1ae003ee7c) Merge branch 'langgenius:main' into main - [`b75998e`](https://github.com/langgenius/dify-official-plugins/commit/b75998ea93a1531f89d333626f56f1116b8ef900) Merge branch 'langgenius:main' into main - [`ac13523`](https://github.com/langgenius/dify-official-plugins/commit/ac13523ea89f185265ef11d27ec9f04727fa8639) feat(openrouter): add Grok 4 Fast Free model and update GPT-5 configuration - [`517d8e4`](https://github.com/langgenius/dify-official-plugins/commit/517d8e4138d2c954fb5a6b36c65187b9f903757c) Merge branch 'langgenius:main' into openrouter-grok4fast - [`bb0d9f8`](https://github.com/langgenius/dify-official-plugins/commit/bb0d9f8259590108aad7039078d1f132420f7b2a) feat(openrouter): update GPT-5 model configuration and version bump ### 📊 Changes **5 files changed** (+85 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `models/openrouter/manifest.yaml` (+1 -1) 📝 `models/openrouter/models/llm/_position.yaml` (+1 -0) 📝 `models/openrouter/models/llm/gpt-5-chat.yaml` (+1 -30) ➕ `models/openrouter/models/llm/grok-4-fast-free.yaml` (+80 -0) 📝 `models/openrouter/models/llm/llm.py` (+2 -0) </details> ### 📄 Description feat(openrouter): add Grok 4 Fast Free model and update GPT-5 configuration - Add grok-4-fast-free model to position configuration - Update gpt-5-chat context size from 400K to 128K tokens - Remove unsupported gpt-5-chat parameters (json_schema, reasoning_effort, exclude_reasoning_tokens) - Add boolean enable_thinking parameter handling in OpenRouter LLM - Updated GPT-5 model configuration by removing multi-tool-call and stream-tool-call features ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [ ] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [ ] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## This PR contains Changes to *LLM Models Plugin* <!-- LLM Models Test Example: --> <!-- https://github.com/langgenius/dify-official-plugins/blob/main/.assets/test-examples/llm-plugin-tests/llm_test_example.md --> - [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [x] My Changes Affect Structured Output Format (JSON, XML, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest Gpt-5-chat doesn't support structured outputs. <img width="383" height="399" alt="image" src="https://github.com/user-attachments/assets/2c36ac20-a496-4681-94c0-c91ce2e3f189" /> <img width="409" height="474" alt="image" src="https://github.com/user-attachments/assets/a5f0e506-9878-4de6-922e-2a52db5f63e5" /> - [ ] My Changes Affect Token Consumption Metrics <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [x] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest <img width="1009" height="852" alt="image" src="https://github.com/user-attachments/assets/f87f747b-8f64-4d8a-a63e-2a977c28a6ff" /> Gpt-5-chat doesn't support reasoning. - [x] Other Changes (Add New Models, Fix Model Parameters etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> https://platform.openai.com/docs/models/compare?model=gpt-5-chat-latest <img width="349" height="395" alt="image" src="https://github.com/user-attachments/assets/bc3d0c04-576d-448f-bc6f-73d728cf5ec3" /> Gpt-5 doesn't support function call. <img width="358" height="194" alt="image" src="https://github.com/user-attachments/assets/12328d02-06fe-463c-b1f9-a1caa7bd20f0" /> The context window of gpt-5-chat is 128,000 other than 400,000. <img width="723" height="530" alt="image" src="https://github.com/user-attachments/assets/53c1fcc2-a574-4c14-9701-f88c9db2090d" /> Add grok-4-fast ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.5.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] Dify Version is: 2.0.0-beta2<!-- Specify Your Version (e.g., 1.2.0) -->, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 11:16:00 -05:00
yindo closed this issue 2026-02-16 11:16:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2064