feat: extended safety threshold check to include 'thinking-exp' model ids
This commit is contained in:
parent
f86a274cd3
commit
c04fd62bec
@ -114,9 +114,10 @@ export default class GeminiProvider extends BaseProvider {
|
||||
}
|
||||
|
||||
private getSafetySettings(modelId: string): SafetySetting[] {
|
||||
const safetyThreshold = modelId.includes('gemini-exp-')
|
||||
? HarmBlockThreshold.BLOCK_NONE
|
||||
: ('OFF' as HarmBlockThreshold)
|
||||
const safetyThreshold =
|
||||
modelId.includes('gemini-exp-') || modelId.includes('thinking-exp')
|
||||
? HarmBlockThreshold.BLOCK_NONE
|
||||
: ('OFF' as HarmBlockThreshold)
|
||||
|
||||
return [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user