We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a865f commit c5fbd54Copy full SHA for c5fbd54
packages/tiny-agents/src/lib/webServer.ts
@@ -55,9 +55,9 @@ export function startServer(agent: Agent): void {
55
requestBody = ChatCompletionInputSchema.parse(body);
56
} catch (err) {
57
if (err instanceof z.ZodError) {
58
- return res.error(404, "Invalid ChatCompletionInput body \n" + JSON.stringify(err));
+ return res.error(400, "Invalid ChatCompletionInput body \n" + JSON.stringify(err));
59
}
60
- return res.error(404, "Invalid ChatCompletionInput body");
+ return res.error(400, "Invalid ChatCompletionInput body");
61
62
/// Ok, from now on we will send a SSE (Server-Sent Events) response.
63
res.setHeaders(
0 commit comments