langflow icon indicating copy to clipboard operation
langflow copied to clipboard

ConversationChain + OpenAI did not response

Open amazingnerd opened this issue 1 year ago • 4 comments

Describe the bug ConversationChain did not response

Browser and Version Chrome Version 120.0.6099.199

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Flows' page

  2. Drag OpenAI and ConversationChain, set the right OpenAI API and connect it to ConversationChain image

  3. Click on "Flash" button to check if it ok, all signal signs went green.

  4. Click on "Chat" button, and send message "What's your name?". It's loading forever, no response. image

amazingnerd avatar Jan 10 '24 09:01 amazingnerd

🤖

Hello @amazingnerd! I'm Dosu, a friendly bot here to help you while we wait for a human maintainer. Whether it's solving bugs, answering your questions, or helping you become a contributor, I'm here to assist. Let's work together to get your issue resolved!

Based on the information you've provided, there could be a couple of reasons why the ConversationChain is not responding.

One possibility is that the flow has not been built yet. Even if the signal signs are green, the flow might not have been built, which is a necessary step before the chat can be opened. You can check the value of the isBuilt prop when the chat button is clicked. If isBuilt is false, the setErrorData function is called with the FLOW_NOT_BUILT_TITLE and FLOW_NOT_BUILT_DESCRIPTION constants, which might provide more information about the issue.

Another possibility is that the chat cannot be opened for some reason. Again, you can check the value of the canOpen prop when the chat button is clicked. If canOpen is false, the setErrorData function is called with the CHAT_CANNOT_OPEN_TITLE and CHAT_CANNOT_OPEN_DESCRIPTION constants, which might provide more information about the issue.

You can find the relevant code in the chatTrigger component.

As for the "Flash" button, I wasn't able to find specific information about its function within the repository. It's possible that it checks the connectivity or performs some other function, but without more information, it's hard to say for sure.

If you're still having trouble, could you provide more information about the steps you're taking and any error messages you're seeing? This could help in diagnosing the issue.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

dosubot[bot] avatar Jan 10 '24 09:01 dosubot[bot]

The same problem.

mariuszkumor avatar Jan 16 '24 23:01 mariuszkumor

I noticed in logs:

2024-01-17 11:55:21 RateLimitError: Error code: 429 -
2024-01-17 11:55:21 {'error': {'message': 'You exceeded
2024-01-17 11:55:21 your current quota, please check
2024-01-17 11:55:21 your plan and billing details. For
2024-01-17 11:55:21 more information on this error, read
2024-01-17 11:55:21 the docs:
2024-01-17 11:55:21 https://platform.openai.com/docs/gui
2024-01-17 11:55:21 des/error-codes/api-errors.',
2024-01-17 11:55:21 'type': 'insufficient_quota',
2024-01-17 11:55:21 'param': None, 'code':
2024-01-17 11:55:21 'insufficient_quota'}}

It means, I used a free version of OpenAI API and I think this feature can't work because of the limits https://platform.openai.com/account/limits Might be about 3RPM (I used gpt-3.5-turbo). Once upgraded to the paid account, it started working and I was able to run the example.

mariuszkumor avatar Jan 20 '24 11:01 mariuszkumor

Hi, @amazingnerd,

I'm helping the langflow team manage their backlog and am marking this issue as stale. From what I understand, the issue "ConversationChain not responding when connected to OpenAI" was reported by you. The problem occurs when using the "Chat" button and sending a message, resulting in indefinite loading without a response. I provided a detailed response suggesting potential reasons for the issue, including checking the value of certain props and provided relevant code references. Another user, mariuszkumor, also experienced the same problem and identified that the issue might be related to exceeding the free version limits of the OpenAI API, which was resolved after upgrading to a paid account.

Could you please confirm if this issue is still relevant to the latest version of the langflow repository? If it is, please let the langflow team know by commenting on the issue. Otherwise, feel free to close the issue yourself or the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution to the langflow project. If you have any further questions or concerns, feel free to reach out.

dosubot[bot] avatar Apr 20 '24 16:04 dosubot[bot]

Hello, @amazingnerd Sorry for the delay. Did you try using the new version? Does the error still persist?

anovazzi1 avatar Jul 01 '24 14:07 anovazzi1

Hi @amazingnerd , 
 We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.


Thank you for your understanding!

carlosrcoelho avatar Jul 16 '24 17:07 carlosrcoelho

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.

carlosrcoelho avatar Jul 22 '24 00:07 carlosrcoelho