mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #984] [CLOSED] Refactor OpenAI plugin to use GitHub AI Models endpoint #1660
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/984
Author: @drunkod
Created: 5/27/2025
Status: ❌ Closed
Base:
main← Head:feat/github-ai-via-openai-plugin📝 Commits (1)
aeb74f3Refactor OpenAI plugin to use GitHub AI Models endpoint📊 Changes
5 files changed (+115 additions, -82 deletions)
View changed files
📝
models/openai/manifest.yaml(+5 -4)📝
models/openai/models/common_openai.py(+6 -7)➕
models/openai/models/llm/github_openai_gpt-4.1.yaml(+42 -0)📝
models/openai/models/llm/llm.py(+41 -35)📝
models/openai/provider/openai.yaml(+21 -36)📄 Description
This commit adapts the existing OpenAI plugin to enable the use of OpenAI-compatible models hosted on the GitHub AI endpoint (https://models.github.ai/inference).
Key changes include:
The plugin now expects a GITHUB_TOKEN for authentication and can be configured to point to the GitHub AI inference endpoint.
Related Issues or Context
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.2.0,<0.3.0in 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.