Skip to content

教程里面没说要用Gemini啊 #22

Description

@Aughtty

不是只申请一下openrouter和unsplash的API不就可以了吗?
为什么我出现了这种报错,求指导

`
🎙️ 正在转录音频...
正在转录音频(这可能需要几分钟)...
正在转录音频(这可能需要几分钟)...
D:\Tool\tool_py\Anaconda\package\envs\video_note\lib\site-packages\whisper\transcribe.py:126: UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn("FP16 is not supported on CPU; using FP32 instead")

📝 正在整理长文版本...
内容将分为 3 个部分进行处理...
正在处理第 1/3 部分...
⚠️ 内容整理失败: Error code: 400 - {'error': {'message': 'google/gemini-pro is not a valid model ID', 'code': 400}, 'user_id': 'user_2w89kW9VneZP5n1oyutH5nt50Xr'}
正在处理第 2/3 部分...
⚠️ 内容整理失败: Error code: 400 - {'error': {'message': 'google/gemini-pro is not a valid model ID', 'code': 400}, 'user_id': 'user_2w89kW9VneZP5n1oyutH5nt50Xr'}
正在处理第 3/3 部分...
⚠️ 内容整理失败: Error code: 400 - {'error': {'message': 'google/gemini-pro is not a valid model ID', 'code': 400}, 'user_id': 'user_2w89kW9VneZP5n1oyutH5nt50Xr'}

📱 正在生成小红书版本...
⚠️ 转换小红书笔记失败: Error code: 400 - {'error': {'message': 'google/gemini-pro is not a valid model ID', 'code': 400}, 'user_id': 'user_2w89kW9VneZP5n1oyutH5nt50Xr'}
⚠️ 生成小红书版本失败: list index out of range
错误详情:
Traceback (most recent call last):
File "video_note_generator.py", line 901, in process_video
f.write(f"# {titles[0]}\n\n")
IndexError: list index out of range

✅ 笔记已保存至: temp_notes\20250424_110047_original.md
✅ 整理版内容已保存至: temp_notes\20250424_110047_organized.md
(video_note) PS D:\GIthub\Video_note_generator-main>
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions