Multiple file code improvements. Need a Backup feature... #454
Replies: 3 comments 1 reply
-
Hi! Thanks for the changes. Sadly i still get the error: Error: Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Input:SYSTEM: Human feedback: |
Beta Was this translation helpful? Give feedback.
-
@ChessScholar install github desktop https://desktop.github.com/ and press Ctrl+R inside to create pull request |
Beta Was this translation helpful? Give feedback.
-
I changed the coding in a few files for stability and error checks. just change all of the extensions from .txt to .py except the prompt.
I did my best to keep the coding universal.
I highly recommend completing the other call functions as described in Homepage Auto-GPT . such as setting up all the APIs. They are pretty easy.
This fixed a lot of the JSON errors, parsing issues, and Unknown command Errors. There are still a lot of things that need to be improved.
json_parser.py (this was very annoying to debug)
import re
prompt.txt (I don't know if there was anything different, but my "date created" showed the same as the other files, so I included it lol.
main.txt
raise an exception if pinecone_api_key or region is not provided if not cfg.pinecone_api_key or not cfg.pinecone_region: raise Exception ("Please provide pinecone_api_key and pinecone_region")
has not yet been added aftercfg = Config()
memory_to_add = f"Assistant Reply: {assistant_reply} " \ f"\nResult: {result} " \ f"\nHuman Feedback: {user_input} "
commands.txt
from call_ai_function import call_ai_function
model_name = 'GPT-4'
for "cannot find gpt4" issues. (fake solution :P)elif command_name == "think": return think(arguments["topic"])
def think(topic):
[long code]json_parser Improved.txt
prompt.txt
main.txt
commands.txt
To be desired: A backup function for information already learned to call back on if the system crashes (usually from a Gateway error).
Beta Was this translation helpful? Give feedback.
All reactions