agent: Add ability to change the API base URL for OpenAI via the UI (#32979)

The `api_url` setting is one that most providers already support and can
be changed via the `settings.json`. We're adding the ability to change
it via the UI for OpenAI specifically so it can be more easily connected
to v0.

Release Notes:

- agent: Added ability to change the API base URL for OpenAI via the UI

---------

Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com>
This commit is contained in:
Danilo Leal 2025-06-18 18:47:43 -03:00 committed by GitHub
parent ab189b898d
commit 629bd42276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 202 additions and 61 deletions

View file

@ -138,18 +138,18 @@ impl Render for SingleLineInput {
.when_some(self.label.clone(), |this, label| {
this.child(
Label::new(label)
.size(LabelSize::Default)
.size(LabelSize::Small)
.color(if self.disabled {
Color::Disabled
} else {
Color::Muted
Color::Default
}),
)
})
.child(
h_flex()
.px_2()
.py_1()
.py_1p5()
.bg(style.background_color)
.text_color(style.text_color)
.rounded_md()