Closed cstkn closed 5 months ago
嘿,@cstkn!很高兴再次见到你。希望你今天过得不错!
根据您提供的信息,我发现了一些可能的问题和解决方案。
首先,OpenAI API Server显示"Not Found"可能是由于服务器配置错误或地址错误。请确保您的服务器配置(包括主机地址和端口号)是正确的。此外,如果服务器没有正确启动,也可能导致此问题。您可以检查./logs/
目录下的日志文件,看是否有任何错误信息或警告。
其次,Chatchat WEBUI Server无法打开可能是由于防火墙或网络配置问题。在Windows 10上,防火墙或网络配置问题可能会阻止对服务器的入站连接,特别是如果它们在非标准端口上监听。请检查Windows 10的防火墙设置,确保允许在配置的端口上的入站连接。
此外,我在Langchain-Chatchat的存储库中找到了一些类似的问题和解决方案,可能对您有所帮助:
WebUI无法访问:这个讨论建议在Streamlit提示时输入电子邮件地址,因为这已经为其他用户解决了类似的问题。
无法访问chachat的api:这个问题的建议解决方案是使用正确的API端点,如/chat/chat
,/chat/search_engine_chat
,/chat/feedback
等。这些端点应该是POST请求。
我在model_config.py里配置了openai的key,但是对话界面选择openai-api进行聊天的时候报错,但是我已经开了国外的TZ了啊,请问这是为何:这个问题的建议解决方案是确保端口7861在Windows系统上成功地隧道到外部网络,而不仅仅是启用VPN。
希望这些信息能帮助您解决问题。如果问题仍然存在,或者您有更多的错误信息或日志,欢迎您提供更多的信息,以便我们能更好地帮助您。
这是第一次启动才有吧
这个问题已经被标记为 stale
,因为它已经超过 30 天没有任何活动。
操作系统:Windows-10-10.0.22635-SP0. python版本:3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)] 项目版本:v0.2.10 langchain版本:0.0.354. fastchat版本:0.2.35
当前使用的分词器:ChineseRecursiveTextSplitter 当前启动的LLM模型:['chatglm3-6b', 'zhipu-api', 'openai-api'] @ cuda {'device': 'cuda', 'host': '127.0.0.1', 'infer_turbo': False, 'model_path': 'D:\wujiaping\chatglm\modles\chatglm3-6b', 'model_path_exists': True, 'port': 20002} {'api_key': '', 'device': 'auto', 'host': '127.0.0.1', 'infer_turbo': False, 'online_api': True, 'port': 21001, 'provider': 'ChatGLMWorker', 'version': 'glm-4', 'worker_class': <class 'server.model_workers.zhipu.ChatGLMWorker'>} {'api_base_url': 'https://api.openai.com/v1', 'api_key': '', 'device': 'auto', 'host': '127.0.0.1', 'infer_turbo': False, 'model_name': 'gpt-4', 'online_api': True, 'openai_proxy': '', 'port': 20002} 当前Embbedings模型: bge-large-zh-v1.5 @ cuda
服务端运行信息: OpenAI API Server: http://127.0.0.1:20000/v1 Chatchat API Server: http://127.0.0.1:7861 Chatchat WEBUI Server: http://127.0.0.1:8501 ==============================Langchain-Chatchat Configuration==============================
运行起来只有 Chatchat API 可以正常打开, OpenAI API Server: http://127.0.0.1:20000/v1打开显示{ "detail": "Not Found" },Chatchat WEBUI Server: http://127.0.0.1:8501无法打开