trypromptly / LLMStack

No-code multi-agent framework to build LLM Agents, workflows and applications with your data
https://llmstack.trypromptly.com
Other
1.42k stars 211 forks source link

'openai' has no attribute 'ChatCompletion' #100

Closed gennadiyvorgy1 closed 9 months ago

gennadiyvorgy1 commented 9 months ago

It is openai-1.1.1 Hello, help please The installation went well, it's not the first time I've done it I create a bot, the key is added openai I check the dialog, but the error during dialog in bot : 'openai' has no attribute 'ChatCompletion'

This is in the terminal :

ERROR 2023-11-16 09:54:11,626 actor Encountered <class 'AttributeError'> in <class 'llmstack.play.actors.agent.Agent.AgentActor'>(urn:uuid:5e921f4f-e607-4e64-a148-ddd7baa962d6): module 'openai' has no attribute 'ChatCompletion'

When testing Web bot and another

Thank you in advance

P.S. I do it in your web version and everything is fine. I do the same on local version - error

ajhai commented 9 months ago

Can you try upgrading to latest release and test? pip install --upgrade llmstack to upgrade.

gennadiyvorgy1 commented 9 months ago

Version It is openai - 1.1.1 Updated : pip install --upgrade llmstack Running llmstack, everything is fine I create a new bot - Website Chatbot Works via VPN It doesn't work without a VPN, and it should I just tried it. I thought I'd check it out. Other applications work without VPN via API

Other applications work via API Оpenai Error Llmstack.txt

Now I tried other applications - they work. I attach the file with the bug

Thank you very much.

P.S.

and check the Web version later, I like to look for mistakes :))))))) non-HTML file Error.Llmstack.txt

ajhai commented 9 months ago

Looks like a local environment issue. Please check your network configuration. Closing this as openai attribute issue is fixed.