forked from XiaoMo/ChatGPT-Next-Web
chore: low the google safety setting to avoid unexpected blocking
This commit is contained in:
parent
a80502f7db
commit
9eaf492d5b
@ -59,6 +59,24 @@ export class GeminiProApi implements LLMApi {
|
|||||||
topP: modelConfig.top_p,
|
topP: modelConfig.top_p,
|
||||||
// "topK": modelConfig.top_k,
|
// "topK": modelConfig.top_k,
|
||||||
},
|
},
|
||||||
|
safetySettings: [
|
||||||
|
{
|
||||||
|
category: "HARM_CATEGORY_HARASSMENT",
|
||||||
|
threshold: "BLOCK_ONLY_HIGH",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
category: "HARM_CATEGORY_HATE_SPEECH",
|
||||||
|
threshold: "BLOCK_ONLY_HIGH",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
category: "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
||||||
|
threshold: "BLOCK_ONLY_HIGH",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
category: "HARM_CATEGORY_DANGEROUS_CONTENT",
|
||||||
|
threshold: "BLOCK_ONLY_HIGH",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("[Request] google payload: ", requestPayload);
|
console.log("[Request] google payload: ", requestPayload);
|
||||||
|
Loading…
Reference in New Issue
Block a user