|
@@ -85,7 +85,7 @@ class GoogleAI(object):
|
|
|
os.remove(video_path)
|
|
|
return "[异常] 上传视频失败"
|
|
|
model = genai.GenerativeModel(
|
|
|
- model_name='gemini-1.5-flash',
|
|
|
+ model_name='gemini-2.0-flash',
|
|
|
generation_config=genai.GenerationConfig(response_mime_type='application/json'),
|
|
|
safety_settings={
|
|
|
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,
|