diff --git a/src/utils/openAI.ts b/src/utils/openAI.ts index 991ec2bf..9680639d 100644 --- a/src/utils/openAI.ts +++ b/src/utils/openAI.ts @@ -14,6 +14,12 @@ export const startChatAndSendMessageStream = async(history: ChatMessage[], newMe generationConfig: { maxOutputTokens: 8000, }, + safetySettings: [ + { + category: HarmCategory.HARM_CATEGORY_UNSPECIFIED, + threshold: HarmBlockThreshold.BLOCK_NONE, + }, + ], }) // Use sendMessageStream for streaming responses