mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix!: prevent AI provider name collision with static settings routes (#26688)
Move the providers routes into a dedicated providers sub-tree: `/ai/settings/providers`, `/ai/settings/providers/add`, and `/ai/settings/providers/:providerId`. The old `/ai/settings/:providerId` and `/ai/settings/add` URLs are removed without backward-compatibility redirects. Bookmarked or shared links to these paths now return a 404. Creating a provider with id `models` (although unlikely) made it impossible to edit it due to a conflict with the static models route.
This commit is contained in:
@@ -30,8 +30,8 @@ handling, and how to monitor providers.
|
||||
> configuration that is ineffectual.**
|
||||
>
|
||||
> The environment variables can be safely removed once seeding has
|
||||
> completed. Visit `https://<your-coder-host>/ai/settings` to see which
|
||||
> providers have been seeded.
|
||||
> completed. Visit `https://<your-coder-host>/ai/settings/providers` to see
|
||||
> which providers have been seeded.
|
||||
|
||||
After seeding, manage providers through the dashboard or API. A provider
|
||||
that has been edited or removed there is not recreated or overwritten
|
||||
|
||||
Reference in New Issue
Block a user