Skip to content

roo code开始调用前调用了不支持的模型 #13

@LightToDo

Description

@LightToDo

但roo code中没有报错,以下是日志:

ERROR:main:Error generating completion: Failed to generate contents. The specified model is not available. Please update gemini_webapi to the latest version. If the error persists and is caused by the package, please report it on GitHub.
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 391, in generate_content
raise Exception
Exception

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/main.py", line 329, in create_chat_completion
response = await gemini_client.generate_content(conversation, model=model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 65, in wrapper
return await func(client, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 402, in generate_content
raise ModelInvalid(
gemini_webapi.exceptions.ModelInvalid: Failed to generate contents. The specified model is not available. Please update gemini_webapi to the latest version. If the error persists and is caused by the package, please report it on GitHub.
INFO: 10.88.0.1:54348 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
INFO: 10.88.0.1:54358 - "POST /v1/chat/completions HTTP/1.1" 200 OK
ERROR:main:Error generating completion: Failed to generate contents. The specified model is not available. Please update gemini_webapi to the latest version. If the error persists and is caused by the package, please report it on GitHub.
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 391, in generate_content
raise Exception
Exception

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/main.py", line 329, in create_chat_completion
response = await gemini_client.generate_content(conversation, model=model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 65, in wrapper
return await func(client, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gemini_webapi/client.py", line 402, in generate_content
raise ModelInvalid(
gemini_webapi.exceptions.ModelInvalid: Failed to generate contents. The specified model is not available. Please update gemini_webapi to the latest version. If the error persists and is caused by the package, please report it on GitHub.
INFO: 10.88.0.1:34184 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error

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