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%

Home Page:https://discord.gg/qUtxnK2NMf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

NixerSo5 opened this issue · comments

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

Just do from tree_of_thoughts import

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'

Hey, I believe you did not pip install!