Repository navigation
[Bug]: #427
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
提交前确认
- 我已经搜索过现有的 issues,确认这不是重复问题
- 我已经阅读过项目文档
是否是最新版
是,使用最新版
调用的是哪个渠道
geminicli
调用的是哪个模型
gemini-3.1-pro-preview
调用的是哪个格式
openai 格式
具体报错内容
[2026-10-10 03:14:48 +0800] [26180] [ERROR] Error in ASGI Framework
Traceback (most recent call last):
File "D:\Chat\gcli2api\.venv\Lib\site-packages\hypercorn\asyncio\task_group.py", line 28, in _handle
await app(scope, receive, send, sync_spawn, call_soon)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\hypercorn\app_wrappers.py", line 34, in __call__
await self.app(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\applications.py", line 1216, in __call__
await super().__call__(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\applications.py", line 96, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\middleware\errors.py", line 186, in __call__
raise exc
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\telemetry\_asgi.py", line 151, in __call__
await self.app(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\middleware\cors.py", line 91, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\middleware\cors.py", line 149, in simple_response
await self.app(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\routing.py", line 676, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 2786, in app
await route.handle(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 1817, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 2869, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 1843, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 1308, in handle
await effective_context.app(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 165, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Chat\gcli2api\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 151, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 727, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Chat\gcli2api\.venv\Lib\site-packages\fastapi\routing.py", line 360, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Chat\gcli2api\src\router\geminicli\openai.py", line 109, in chat_completions
gemini_dict = await normalize_gemini_request(gemini_dict, mode="geminicli")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Chat\gcli2api\src\converter\gemini_fix.py", line 317, in normalize_gemini_request
if log.is_enabled_for("debug"):
^^^^^^^^^^^^^^^^^^
AttributeError: 'Logger' object has no attribute 'is_enabled_for'错误描述
使用SillyTavern
在调用回复时抛出 AttributeError,请求未进入后续的 Gemini 请求处理。
补充信息(可选)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
zaixiakongyiji commentedon Oct 10, 2026
已在 PR #426 中修复此问题