Skip to content

Commit 6ce1162

Browse files
julien-cmishig25
andauthored
Update packages/tiny-agents/src/lib/webServer.ts
Co-authored-by: Mishig <[email protected]>
1 parent ae60159 commit 6ce1162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tiny-agents/src/lib/webServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function startServer(agent: Agent): void {
4949
try {
5050
body = await getJsonBody(req);
5151
} catch {
52-
return res.error(404, "Invalid JSON");
52+
return res.error(400, "Invalid JSON");
5353
}
5454
try {
5555
requestBody = ChatCompletionInputSchema.parse(body);

0 commit comments

Comments
 (0)