rokstrnisa / robogpt Goto Github PK
View Code? Open in Web Editor NEWA simple and extensible program that helps you run GPT-4 model autonomously.
License: MIT License
A simple and extensible program that helps you run GPT-4 model autonomously.
License: MIT License
I've followed the instructions from the readme, run main.py and get the following error:
\Robo-GPT\robo-gpt\action_runner.py", line 9, in
from googlesearch import search
ModuleNotFoundError: No module named 'googlesearch'
What have I missed?
I'm new to Python and pipenv but no matter what I do the script can't seem to see the .env file with my api keys. Renamed the .env.template file to .env, eventually tried copying it to the environment folder that was created, no luck.
Thanks!
James
I am getting this error below though i have set my API key within the .env file?
Traceback (most recent call last):
File "/Users/jasonliao/RoboGPT/robogpt/main.py", line 123, in
main()
File "/Users/jasonliao/RoboGPT/robogpt/main.py", line 95, in main
assistant_response = gpt.chat(user_directions, GENERAL_DIRECTIONS_PREFIX, new_plan, message_history)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jasonliao/RoboGPT/robogpt/gpt.py", line 42, in chat
assistant_response = send_message(messages, available_response_tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jasonliao/RoboGPT/robogpt/gpt.py", line 63, in send_message
response = openai.ChatCompletion.create(model=MODEL, messages=messages, max_tokens=max_response_tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
) = cls.__prepare_create_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
requestor = api_requestor.APIRequestor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/openai/api_requestor.py", line 130, in init
self.api_key = key or util.default_api_key()
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/openai/util.py", line 186, in default_api_key
raise openai.error.AuthenticationError(
openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://onboard.openai.com for details, or email [email protected] if you have any questions.
For me the actions are similar or the same than Tools on langchain. Should not be easier with langchain?. Im just curious. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.