mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #2002] [MERGED] feat(zhipuai): add optional base_url field in provider schema #2202
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/2002
Author: @WenXIN-AI
Created: 11/5/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @crazywoola
Base:
main← Head:feat/zhipuai-baseurl📝 Commits (3)
3c2ddc0feat(zhipuai): add optional base_url field in provider schema4e6a07fchore(zhipuai): bump version to 0.0.17631270bUpdate models/zhipuai/models/llm/llm.py📊 Changes
5 files changed (+22 additions, -5 deletions)
View changed files
📝
models/zhipuai/manifest.yaml(+1 -1)📝
models/zhipuai/models/_common.py(+6 -0)📝
models/zhipuai/models/llm/llm.py(+3 -3)📝
models/zhipuai/provider/zhipuai.py(+1 -1)📝
models/zhipuai/provider/zhipuai.yaml(+11 -0)📄 Description
Related Issues or Context
This PR adds an optional
API Endpoint Hostfield to the ZhipuAI provider schema.It allows users to configure different API endpoints depending on their region.
Context:
ZhipuAI provides two different API Base URLs based on the user's location:
https://open.bigmodel.cn/api/paas/v4/https://api.z.ai/api/paas/v4/By introducing an optional
API Endpoint Host, users can now flexibly switch between these endpoints without modifying the plugin source code.This improves usability for global developers using Dify.
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)
version: 0.0.16)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txtEnvironment Verification
☁️ SaaS Environment
cloud.dify.aito ensure consistent provider configuration behavior🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.