Skip to content

Commit

Permalink
Update openAI.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
babaohuang committed Dec 14, 2023
1 parent 0aff0c3 commit bc96321
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/openAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ export const startChatAndSendMessageStream = async(history: ChatMessage[], newMe
generationConfig: {
maxOutputTokens: 8000,
},
safetySettings: [
{
category: HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT,
threshold: HarmBlockThreshold.BLOCK_NONE,
},
],
})

// Use sendMessageStream for streaming responses
Expand Down

0 comments on commit bc96321

Please sign in to comment.