Repository navigation
Add Phase Router model provider plugin (phase/phase_router 0.1.0) - #4110
Open
evgeniy-phase-ai wants to merge 2 commits into
Open
evgeniy-phase-ai wants to merge 2 commits into
evgeniy-phase-ai wants to merge 2 commits into
Conversation
…skills/dify-plugin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
The plugin source moved to https://github.com/devcells/phase-router-skills/tree/main/dify-plugin (our single public repo for Phase Router integrations). I re-packaged 0.1.0 with the updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin information
Submission type
What changed
New model provider plugin for Phase Router (https://router.phase.xyz), an OpenAI-compatible API with 350+ models behind one key (368 in
GET https://router.phase.xyz/v1/modelstoday). The modelautosends each request to the cheapest model that can handle it.The plugin is a thin wrapper over
OAICompatLargeLanguageModelwith the endpoint fixed tohttps://router.phase.xyz/v1. It ships six predefined LLMs (auto,glm-5.3,kimi-k3.1-pro,deepseek-v4.1-flash,qwen3-coder-480b,gpt-oss-120b) with context sizes, output limits and prices taken from/v1/models, and supports adding any other catalog model as a customizable model. Credentials are validated withGET /v1/key, which is not billed.Disclosure: this PR comes from the Phase Router team (the vendor). The plugin and this PR were prepared by an AI agent (Claude) working for the team, from the team's AI-assisted GitHub account; submission approved by the team.
Risk level
Medium because the plugin sends user prompts to an external service (router.phase.xyz, which forwards them to the model's host). It calls only that one fixed HTTPS host.
Required checks
.envfiles,.gitdirectories, virtual environments, caches, logs, or IDE files.PRIVACY.mdor a hosted privacy policy, andmanifest.yamlreferences it.Security and privacy notes
None of the sensitive capabilities listed in the requirements. The plugin sends the prompts, tool definitions and model parameters of each request, with the user's API key, to the single fixed host
router.phase.xyz(declared inmanifest.yamlundernetwork.domains). No arbitrary URLs, no file or command access. The API key is a Difysecret-inputcredential and is not logged. Requests use timeouts. Details inPRIVACY.md.Local validation
Reviewer notes
Validator warnings:
sensitive_capabilities/access_domains: the onerequests.getisGET https://router.phase.xyz/v1/key; the host is a constant (ENDPOINT_URL), not user input.python_safety: the two flagged lines passcredentialsto the SDK base class (OAICompatLargeLanguageModel); nothing is returned to the user or logged.dependency_vulnerabilities: one pinned dependency (dify_plugin==0.10.2), no known vulnerabilities.Limitation, stated plainly: I have not installed this package in a running Dify Community Edition or on Dify Cloud. We have no Docker host available for Dify CE right now. What was tested is listed above: packaging with the official CLI, the marketplace toolkit validator, and the plugin's provider and LLM classes run directly with the
dify_pluginSDK against the live API. If you need a CE install test before review, say so and we will run it and report back here.