langflow应用卡在思考阶段没有响应

问题描述 投票:0回答:1

我已成功安装langflow(0.4.0)。我测试了第一个应用程序“带有提示和历史记录的基本聊天”。在 ChatOpenAI 面板输入 openai_key 并将“输入键”设置为“文本”后,我成功构建了应用程序。然而,当我打开聊天界面并问一个问题“你好”时,应用程序陷入了如下所示的思考:

日志信息:

> Entering new ConversationChain chain...
Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.

Current conversation:

Human: hello
AI:
/mnt/data/yangpengcheng/miniconda3/envs/langflow/lib/python3.10/site-packages/tenacity/__init__.py:338: RuntimeWarning: coroutine 'AsyncRunManager.on_retry' was never awaited
  self.before_sleep(retry_state)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
[2023-08-07 01:43:05 +0000] [88942] [INFO] ('10.12.186.19', 55850) - "WebSocket /api/v1/chat/6242294b-dad0-4698-a0cf-3766e80dd008" [accepted]
[2023-08-07 01:43:05 +0000] [88942] [INFO] connection open


> Entering new LLMChain chain...
Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.

Current conversation:


Human: hello
AI:


> Entering new LLMChain chain...
Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.

Current conversation:


Human: hello
AI:
[2023-08-07 01:51:10 +0000] [88940] [CRITICAL] WORKER TIMEOUT (pid:88942)
[2023-08-07 01:51:10 +0000] [88940] [ERROR] Worker (pid:88942) was sent code 134!
[2023-08-07 01:51:10 +0000] [89080] [INFO] Booting worker with pid: 89080
[2023-08-07 01:51:10 +0000] [89080] [INFO] Started server process [89080]
[2023-08-07 01:51:10 +0000] [89080] [INFO] Waiting for application startup.
[2023-08-07 01:51:10 +0000] [89080] [INFO] Application startup complete.

我也测试过其他应用程序,也有同样的问题。

langflow 安装在服务器上。我确信服务器可以连接到互联网。

reddit 上有一个类似的问题:langflow:聊天没有响应

python langchain py-langchain
1个回答
0
投票

问题出在 Open AI API 上。仅仅注册帐户或创建 API 密钥还不够。您必须设置计费。否则,您的 API 将仅连接但不会响应。 platform.openai.com > 设置 > 账单

一旦我完成所有设置,我的聊天就能够生成响应。

© www.soinside.com 2019 - 2024. All rights reserved.