Skip to content

🐛 [BUG] - <title>使用大模型出现报错,AttributeError: module 'llm' has no attribute 'chat' #47

Description

@aaawork

严重程度

中 - 功能不可用

comyui版本

秋叶版

python和torch版本

未知

Browsers【浏览器】

Microsoft Edge

OS【系统】

Windows

Reproduction steps【BUG复现步骤】

Traceback (most recent call last):
  File "E:\ComfyUI-aki-v1.4\python\lib\site-packages\aiohttp\web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "<enhanced_experience vendors.sentry_sdk.integrations.aiohttp>", line 140, in sentry_app_handle
  File "<enhanced_experience vendors.sentry_sdk.utils>", line 1649, in reraise
  File "<enhanced_experience vendors.sentry_sdk.integrations.aiohttp>", line 130, in sentry_app_handle
  File "E:\ComfyUI-aki-v1.4\python\lib\site-packages\aiohttp\web_app.py", line 504, in _handle
    resp = await handler(request)
  File "E:\ComfyUI-aki-v1.4\python\lib\site-packages\aiohttp\web_middlewares.py", line 117, in impl
    return await handler(request)
  File "E:\ComfyUI-aki-v1.4\server.py", line 61, in cache_control
    response: web.Response = await handler(request)
  File "<enhanced_experience patches.comfyui.html_resources_patcher>", line 26, in http_resource_injector
  File "E:\ComfyUI-aki-v1.4\server.py", line 73, in cors_middleware
    response = await handler(request)
  File "E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-sixgod_prompt\__init__.py", line 283, in testTransServer
    trans_text =translate('苹果')
  File "E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-sixgod_prompt\__init__.py", line 256, in translate
    trans_text =translator.translate(text,**transObj)
  File "E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-sixgod_prompt\transerver\llmTranslate.py", line 24, in translate
    return llm.chat(text,**kwargs)
AttributeError: module 'llm' has no attribute 'chat'

Screenshots【截图】

No response

Logs【报错日志】

Description

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions