mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: update API URLs from /aibridge to /ai-gateway (#26567)
## Description Updates frontend and Go SDK client URLs from `/api/v2/aibridge/*` to `/api/v2/ai-gateway/*` to match the new route aliases introduced in #26475. ## Changes - Update `site/src/api/api.ts` to call `/api/v2/ai-gateway/*` for all AI Gateway endpoints - Update `codersdk/aibridge.go` type comment to reference the new path - Regenerate `site/src/api/typesGenerated.ts` Closes https://linear.app/coder/issue/AIGOV-230 > Generated with the assistance of Coder Agents (@ssncferreira)
This commit is contained in:
@@ -40,7 +40,7 @@ type AIBridgeListSessionsResponse struct {
|
||||
}
|
||||
|
||||
// AIBridgeSessionThreadsResponse is the response for GET
|
||||
// /api/v2/aibridge/sessions/{session_id} which returns a single
|
||||
// /api/v2/ai-gateway/sessions/{session_id} which returns a single
|
||||
// session with fully expanded threads.
|
||||
type AIBridgeSessionThreadsResponse struct {
|
||||
ID string `json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user