Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Openai gpt-4o-mini 分析失败!!生成脚本时发生错误!!大模型处理过程中发生错误!! #69

Closed
1769586104 opened this issue Dec 2, 2024 · 0 comments

Comments

@1769586104
Copy link

`2024-12-02 11:38:05 | INFO | "./app\utils\script_generator.py:319": init - 文本 LLM 提供商: gpt-4o-mini
2024-12-02 11:38:06 | WARNING | "./app\utils\script_generator.py:40": _try_generate - Generation attempt 1 failed: 'str' object has no attribute 'choices'
2024-12-02 11:38:06 | WARNING | "./app\utils\script_generator.py:40": _try_generate - Generation attempt 2 failed: 'str' object has no attribute 'choices'
2024-12-02 11:38:06 | ERROR | "./app\utils\script_generator.py:78": generate_script - Script generation failed: 'str' object has no attribute 'choices'
2024-12-02 11:38:06 | ERROR | "./webui\components\script_settings.py:549": generate_script - 大模型处理过程中发生错误
Traceback (most recent call last):
File ".\webui\components\script_settings.py", line 543, in generate_script
script_result = processor.process_frames(frame_content_list)
File ".\app\utils\script_generator.py", line 397, in process_frames
script = self.generator.generate_script(frame_content["picture"], word_count)
File ".\app\utils\script_generator.py", line 68, in generate_script
generated_script = self._try_generate(messages, self.default_params)
File ".\app\utils\script_generator.py", line 36, in _try_generate
return self._process_response(response)
File ".\app\utils\script_generator.py", line 119, in _process_response
if not response or not response.choices:
AttributeError: 'str' object has no attribute 'choices'

2024-12-02 11:38:06 | ERROR | "./webui\components\script_settings.py:674": generate_script - 生成脚本时发生错误
Traceback (most recent call last):
File ".\webui\components\script_settings.py", line 543, in generate_script
script_result = processor.process_frames(frame_content_list)
File ".\app\utils\script_generator.py", line 397, in process_frames
script = self.generator.generate_script(frame_content["picture"], word_count)
File ".\app\utils\script_generator.py", line 68, in generate_script
generated_script = self._try_generate(messages, self.default_params)
File ".\app\utils\script_generator.py", line 36, in _try_generate
return self._process_response(response)
File ".\app\utils\script_generator.py", line 119, in _process_response
if not response or not response.choices:
AttributeError: 'str' object has no attribute 'choices'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File ".\webui\components\script_settings.py", line 550, in generate_script
raise Exception(f"分析失败: {str(e)}")
Exception: 分析失败: 'str' object has no attribute 'choices'
`
使用Openai gpt-4o-mini 分析失败!!生成脚本时发生错误!!大模型处理过程中发生错误!!
屏幕截图 2024-12-02 114502

@linyqh linyqh mentioned this issue Dec 6, 2024
6 tasks
@linyqh linyqh closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants