kyegomez / tree-of-thoughts

Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
https://discord.gg/qUtxnK2NMf
Apache License 2.0
4.29k stars 361 forks source link

cannot import name 'OpenAILanguageModel' from 'tree_of_thoughts.treeofthoughts' #53

Closed NixerSo5 closed 1 year ago

JimVincentW commented 1 year ago

+1

kyegomez commented 1 year ago

Did you just pip install? If so remove the tree of thoughts after the dot

kyegomez commented 1 year ago

Just do from tree_of_thoughts import

Explorergt92 commented 1 year ago

Same issue here...

I've tried changing from tree_of_thoughts.openaiModels import OptimizedOpenAILanguageModel to from tree_of_thoughts import OptimizedOpenAILanguageModel

and still get the error

~/Projects/tree-of-thoughts/tree_of_thoughts$ python treeofthoughts.py --problem "design an new transportation system for an all-new city" --search_algorith
m="BFS"
Traceback (most recent call last):
  File "/Projects/tree-of-thoughts/tree_of_thoughts/treeofthoughts.py", line 6, in <module>
    from tree_of_thoughts.openaiModels import OptimizedOpenAILanguageModel
ModuleNotFoundError: No module named 'tree_of_thoughts'

~/Projects/tree-of-thoughts/tree_of_thoughts$ python treeofthoughts.py --problem "design an new transportation system for an all-new city" --search_algorithm="BFS"
Traceback (most recent call last):
  File "/Projects/tree-of-thoughts/tree_of_thoughts/treeofthoughts.py", line 6, in <module>
    from tree_of_thoughts import OptimizedOpenAILanguageModel
ModuleNotFoundError: No module named 'tree_of_thoughts'
kyegomez commented 1 year ago

Hey, I believe you did not pip install!