Skip to content

Commit

Permalink
Throw error when providers not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Oct 17, 2024
1 parent 010cce3 commit 742f976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatapi/src/utils/chat-helpers.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export async function aiChatNonStream(

return await retrieveResponse(thread.id);
} catch (error) {
return `Error processing request ${error}`;
throw new Error(`Error processing request ${error}`);
}
}

Expand Down

0 comments on commit 742f976

Please sign in to comment.