Skip to content

[BUG] 简洁阐述问题 / 使用pyCharm启动项目后执行,出现异常 #5445

Description

@Hu1076137768

UnboundLocalError: local variable 'use_mcp' referenced before assignment
Traceback:
File "E:\Anaconda_envs\envs\chats\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "E:\myObject\ChatChat\Langchain-Chatchat\libs\chatchat-server\chatchat\webui.py", line 77, in
dialogue_page(api=api, is_lite=is_lite)
File "E:\myObject\ChatChat\Langchain-Chatchat\libs\chatchat-server\chatchat\webui_pages\dialogue\dialogue.py", line 419, in dialogue_page
use_mcp=use_mcp,

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions