fix: limit Z AI to only two coding endpoints (International/China) #8688
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 simplifies the Z AI provider configuration by limiting it to only the two official coding endpoints, as requested by Z AI. This reduces confusion and prevents misconfiguration.
Changes
zaiApiLineSchemato only includeinternational_codingandchina_codinginternationalandchina(non-coding) options fromzaiApiLineConfigsProviderSettingsManagerto convert:international→international_codingchina→china_codingBehavior
Testing
Related Issue
Fixes #8687
Review
Implementation review completed with 95% confidence score - all requirements met with clean, non-breaking migration path.
Important
Limits Z AI provider to two coding endpoints with automatic migration and UI updates for clarity and backward compatibility.
international_codingandchina_codingendpoints inprovider-settings.ts.ProviderSettingsManager.tsconvertsinternationaltointernational_codingandchinatochina_coding.ApiOptions.tsxanduseSelectedModel.tsto reflect new endpoint names.zai.spec.tsto use new endpoint names and verify correct URL and API key usage.zaiApiLineConfigsinzai.ts.This description was created by
for 3bd349e. You can customize this summary. It will automatically update as commits are pushed.