Attempt to improve JSON handling in GPT-3

This commit is contained in:
Taylor Brown
2023-04-02 14:48:35 -05:00
parent 99a33023c4
commit f808710528
2 changed files with 15 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ def chat_with_ai(
full_message_history,
permanent_memory,
token_limit,
debug=False):
debug=True):
while True:
try:
"""
@@ -62,7 +62,7 @@ def chat_with_ai(
print("----------- END OF CONTEXT ----------------")
response = openai.ChatCompletion.create(
model="gpt-4",
model="gpt-3.5-turbo",#model="gpt-4",
messages=current_context,
)