Add ai:proxyurl to Wave AI mode config and wire proxy support through Gemini/OpenAI Chat#2961
Draft
Add ai:proxyurl to Wave AI mode config and wire proxy support through Gemini/OpenAI Chat#2961
ai:proxyurl to Wave AI mode config and wire proxy support through Gemini/OpenAI Chat#2961Conversation
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Deploying waveterm with
|
| Latest commit: |
1019c2a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://912998a2.waveterm.pages.dev |
| Branch Preview URL: | https://copilot-add-proxyurl-to-aimo.waveterm.pages.dev |
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ProxyUrl to AIModeConfigType and clean up unused config
Add Feb 28, 2026
ai:proxyurl to Wave AI mode config and wire proxy support through Gemini/OpenAI Chat
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.
Wave AI mode config (
waveaientries) did not expose a per-mode proxy URL, soAIOptsType.ProxyURLwas never populated from mode settings. As a result, proxy routing worked in some backends only when set elsewhere, anductypes.AIModeConfigremained as an obsolete, confusing duplicate type.Config model + schema
ProxyURL string \json:"ai:proxyurl,omitempty"`towconfig.AIModeConfigType`.schema/waveai.jsonsoai:proxyurlis accepted in Wave AI mode config.Runtime option plumbing
getWaveAISettingsto propagate mode-levelProxyURLintouctypes.AIOptsType.ProxyURL.Backend proxy handling parity
pkg/aiusechat/gemini/gemini-backend.gopkg/aiusechat/openaichat/openaichat-backend.gohttp.Transport.Proxy.Type cleanup
uctypes.AIModeConfigand its helper method to eliminate stale/duplicate AI mode config definitions.Focused coverage
ProxyURLsurvives provider-default resolution.Example Wave AI mode config:
{ "waveai": { "my-openai-mode": { "display:name": "OpenAI via Proxy", "ai:provider": "openai", "ai:model": "gpt-5-mini", "ai:proxyurl": "http://localhost:8080" } } }💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.