Skip to content

Commit

Permalink
fix: change internal error to bad request
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl committed Oct 18, 2024
1 parent 4a5f7ef commit 69ba974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/agent_routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function registerAgentRoutes(router: IRouter, assistantService: Assistant
);
return res.ok({ body: response });
} catch (e) {
return res.internalError();
return res.badRequest();
}
})
);
Expand Down

0 comments on commit 69ba974

Please sign in to comment.