fix: ensure that /providers list and shell endpoints are correctly typed in sdk and openapi schema (#21543)

This commit is contained in:
Aiden Cline 2026-04-08 12:56:15 -05:00 committed by GitHub
commit 039c60170d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 271 deletions

View file

@ -28,7 +28,7 @@ export const ProviderRoutes = lazy(() =>
"application/json": {
schema: resolver(
z.object({
all: ModelsDev.Provider.array(),
all: Provider.Info.array(),
default: z.record(z.string(), z.string()),
connected: z.array(z.string()),
}),

View file

@ -906,7 +906,7 @@ export const SessionRoutes = lazy(() =>
description: "Created message",
content: {
"application/json": {
schema: resolver(MessageV2.Assistant),
schema: resolver(MessageV2.WithParts),
},
},
},