michelle123lam / lloom

Concept Induction: Analyzing Unstructured Text with High-Level Concepts Using LLooM (CHI 2024 paper). LLooM automatically surfaces high-level concepts to analyze unstructured text.
https://stanfordhci.github.io/lloom
BSD 3-Clause "New" or "Revised" License
60 stars 14 forks source link

openai package dependency - is the v0.28 requirement intended? #2

Closed zilinskyjan closed 6 months ago

zilinskyjan commented 6 months ago

This is a terrific project, but I thought maybe this was worth flagging.

When importing import text_lloom.workbench as wb I am occasionally getting:

text-lloom 0.7 requires openai==0.28, but you have openai 1.23.2 which is incompatible.

That may not have been intended (?)

michelle123lam commented 6 months ago

Thanks for bringing this up—I have a to-do to update the OpenAI API version, as the current LLooM package was built using an older version that's not up-to-date now. I'll update here when I make that fix!

DaryaTereshchenko commented 6 months ago

Hi! I'm loading the pip install version of text_lloom and every time I get the error "AttributeError: module 'openai' has no attribute 'OpenAI'" when I execute 'import text_lloom.workbench as wb'. I see that the dependency is updated in 'requirements.txt', but the PyPi version is loading with the dependency 0.28.

Could you advise me what to do in this case?

zilinskyjan commented 6 months ago

Many thanks, @michelle123lam!

@DaryaTereshchenko: yes that was the same error I encountered.

michelle123lam commented 6 months ago

hi @DaryaTereshchenko and @zilinskyjan, which version of text_lloom are you using now? Yesterday I just pushed a new version 0.7.1 which includes my latest updates to use the new OpenAI version, and I'd updated the package dependencies for the PyPI package to openai = "^1.23.1".

michelle123lam commented 6 months ago

Closing this since I believe this has been addressed, but let me know if you still run into issues.