add DEFAULT_MODEL to .env.sample

+ fix typo
pull/13/head
Felix Boehme 2023-04-14 17:15:07 -04:00
rodzic 2497fb816b
commit dd174cf30e
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1 +1,2 @@
OPENAI_API_KEY=your_api_key
DEFAULT_MODEL=gpt-3.5-turbo

Wyświetl plik

@ -60,7 +60,7 @@ def json_validated_response(model, messages):
except (json.decoder.JSONDecodeError, ValueError) as e:
cprint(f"{e}. Re-running the query.", "red")
# debug
cprint(f"\n\GPT RESPONSE:\n\n{content}\n\n", "yellow")
cprint(f"\nGPT RESPONSE:\n\n{content}\n\n", "yellow")
# append a user message that says the json is invalid
messages.append(
{