mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-26 01:14:27 +01:00
Extracts chat and data functions from main file.
This commit is contained in:
10
AutonomousAI/data.py
Normal file
10
AutonomousAI/data.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def load_prompt():
|
||||
try:
|
||||
# Load the promt from data/prompt.txt
|
||||
with open("data/prompt.txt", "r") as prompt_file:
|
||||
prompt = prompt_file.read()
|
||||
|
||||
return prompt
|
||||
except FileNotFoundError:
|
||||
print("Error: Prompt file not found", flush=True)
|
||||
return ""
|
||||
Reference in New Issue
Block a user