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
parent cd87d4f9d3
commit 039c60170d
4 changed files with 21 additions and 271 deletions
@@ -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()),
}),
@@ -906,7 +906,7 @@ export const SessionRoutes = lazy(() =>
description: "Created message",
content: {
"application/json": {
schema: resolver(MessageV2.Assistant),
schema: resolver(MessageV2.WithParts),
},
},
},