Open kyegomez opened 1 year ago
i am getting the same error when i tried to run your example. I just installed the tree-of-thoughts via pip, so I thought I'll install the latest ToT from source, but now I am getting this error from the ToT module:
Traceback (most recent call last):
File "/home/bene/AI/the-compiler/test.py", line 2, in
obviously the folder experiements is a typo, but that's not the issue here i guess.
I can look into this tomorrow (I'm in Europe). Or do you have other suggestions what to try?
I was able to get around the Authentication error by generating a new API key. Not sure why I had to do that but it worked for me.
I was able to get around the the ModuleNotFound error by using the code found in the_complier.py as opposed to using the example they provided.
Firstly, love the concept of the application. I believe we are heading in this direction with software development. You managed to stand this up very quickly since the TOT research was published.
After an hour of debugging I got this running in a new environment. Sharing the bugs:
After getting it to run the test script I got the response "Generated thoughts: ['Observation: Python is the most optimal programming language for creating a simple calculator that can perform addition, subtraction, multiplication, and division.\nThoughts: To create an architectural analysis of the calculator in Python, it is necessary to break']"
then an unhandled same origin 502 error from openai from this line the_compiler.py", line 86, in openai_api_call_handler response = openai.Completion.create(
Keep up the great work kyegomez.
@screwyforcepush Thank you for your feedback and nice words, I'm very grateful for you.
Excuse my awaited response, I don't get notifications for issues.
I have pushed a major update and will soon cultivate this project to absurd reliability
AuthenticationError Traceback (most recent call last) in <cell line: 5>()
3 get_ipython().system('pip install tree-of-thoughts')
4 get_ipython().system('pip install openai')
----> 5 from tree_of_thoughts import OptimizedTreeofThoughts, OptimizedOpenAILanguageModel
6 import subprocess
7 import json
10 frames /usr/local/lib/python3.10/dist-packages/openai/api_requestor.py in _interpret_response_line(self, rbody, rcode, rheaders, stream) 685 stream_error = stream and "error" in resp.data 686 if stream_error or not 200 <= rcode < 300: --> 687 raise self.handle_error_response( 688 rbody, rcode, resp.data, rheaders, stream_error=stream_error 689 )
AuthenticationError:
Upvote & Fund