This commit is contained in:
Dax Raad
2025-05-28 15:39:51 -04:00
parent ff786d9139
commit 6183398543
3 changed files with 79 additions and 28 deletions

View File

@@ -18,6 +18,7 @@ const SessionInfo = Session.Info.openapi({
const ProviderInfo = Config.Provider.openapi({
ref: "Provider.Info",
});
type ProviderInfo = z.output<typeof ProviderInfo>;
export namespace Server {
@@ -210,7 +211,7 @@ export namespace Server {
),
async (c) => {
const body = c.req.valid("json");
const msg = await Session.chat(body as any);
const msg = await Session.chat(body);
return c.json(msg);
},
)