Skip to content

Commit

Permalink
use custom instead of customError
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Dec 4, 2024
1 parent 2efbf5a commit 90af942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/inference/server/routes/chat_complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function registerChatCompleteRoute({
body: chatCompleteResponse,
});
} catch (e) {
return response.customError({
return response.custom({
statusCode: isInferenceError(e) ? e.meta?.status ?? 500 : 500,
bypassErrorFormat: true,
body: {
Expand Down

0 comments on commit 90af942

Please sign in to comment.