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.18k stars 353 forks source link

TypeError: TreeofThoughts.solve() got an unexpected keyword argument 'T' #39

Closed ivanrlg closed 1 year ago

ivanrlg commented 1 year ago

C:\Users\ivanr\tree-of-thoughts\tree_of_thoughts>python3 treeofthoughts.py --problem "design an new transportation system for an all-new city" --search_algorithm="BFS" Namespace(problem='design an new transportation system for an all-new city', version=1, search_algorithm='BFS', k=3, T=10, b=5, vth=0.4, timeout=10, confidence=0.8, max_iterations=40, convergence_threshold=0.01, convergence_count=5) Using api_model text-davinci-003 Traceback (most recent call last): File "C:\Users\ivanr\tree-of-thoughts\tree_of_thoughts\treeofthoughts.py", line 630, in best_state = optimized_tree_of_thoughts.solve(args.problem, k=args.k, T=args.T, b=args.b, vth=args.vth) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: TreeofThoughts.solve() got an unexpected keyword argument 'k'

wqw547243068 commented 1 year ago

One solution:

    #optimized_tree_of_thoughts = TreeofThoughts(model, search_algorithm=args.search_algorithm)
    optimized_tree_of_thoughts = OptimizedTreeofThoughts(model, search_algorithm=args.search_algorithm)
kyegomez commented 1 year ago

Hey patched, please try again!