microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.6k stars 266 forks source link

Openai ChatCompletion not found #63

Open someshfengde opened 8 months ago

someshfengde commented 8 months ago

latest openai version 1.1.1 doesn't have openai.ChatCompletion. Need previous version of library or lida has to update the method for using latest documentation

victordibia commented 8 months ago

This has been addressed by updating llmx (which lida uses) use previous version of openai library. Please let me know if a fresh install of lida pip install -U lida still shows this error.

Rohit036 commented 8 months ago

This worked by upgrading llmx to latest. Thanks

trojrobert commented 8 months ago

@victordibia Please close this issue

saduri2004 commented 7 months ago

Does running pip install -U lida fix the error for you? It doesnt for me. How can I upgrade llmx

trojrobert commented 7 months ago

Does running pip install -U lida fix the error for you? It doesnt for me. How can I upgrade llmx

pip install -U llmx

vignesh-arivazhagan commented 7 months ago

This has been addressed by updating llmx (which lida uses) use previous version of openai library. Please let me know if a fresh install of lida pip install -U lida still shows this error.

@victordibia ,In our project we are using other libraries that relies on latest openAI along with lida , Since you are using previous version of openai library , we are having issues , consider upgrading llmx to use latest openAI

someshfengde commented 7 months ago

@victordibia can I take on this task for changing the code so that it'll run on new version ? can you assign it to me?

vignesh14052002 commented 6 months ago

@victordibia ,In our project we are using other libraries that relies on latest openAI along with lida , Since you are using previous version of openai library , we are having issues , consider upgrading llmx to use latest openAI

@victordibia Raised a PR to fix this issue https://github.com/victordibia/llmx/pull/17