feat(ai-gateway): add zhipuai extended options with dynamic config#245
Closed
johnlanni wants to merge 1 commit into
Closed
feat(ai-gateway): add zhipuai extended options with dynamic config#245johnlanni wants to merge 1 commit into
johnlanni wants to merge 1 commit into
Conversation
- Add --zhipuai-domain option for China/International endpoint selection - Add --zhipuai-code-plan-mode flag for Code Plan API support - Build ZHIPUAI_EXTRA_CONFIGS in get-ai-gateway.sh for dynamic configuration - Parse ZHIPUAI_EXTRA_CONFIGS in ai-gateway.sh from environment variable - This allows configuration changes without rebuilding the Docker image
Contributor
Author
|
Superseded by complete EXTRA_CONFIGS refactoring |
|
CodeReview流程已终止 |
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.
Summary
This PR adds extended configuration options for the Zhipu AI provider with a refactored approach that allows dynamic configuration without rebuilding the Docker image.
Key Changes
get-ai-gateway.sh- TheZHIPUAI_EXTRA_CONFIGSenvironment variable is constructed from individual settingsai-gateway.sh- The container script parses the comma-separated config stringNew CLI Options
--zhipuai-domain DOMAINopen.bigmodel.cn, international:api.z.ai)--zhipuai-code-plan-mode/api/coding/paas/v4/chat/completionsendpoint)Usage Examples
Architecture
Benefits
Related PR
Backend support: higress-group/higress#3488