Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ def create_flashcards(content):
|
|
26 |
# Fetch the secret prompt from environment variables
|
27 |
prompt = os.getenv("FLASHCARD_PROMPT")
|
28 |
|
29 |
-
response = openai.
|
30 |
-
model="gpt-
|
31 |
messages=[
|
32 |
{"role": "system", "content": prompt},
|
33 |
{"role": "user", "content": content}
|
|
|
26 |
# Fetch the secret prompt from environment variables
|
27 |
prompt = os.getenv("FLASHCARD_PROMPT")
|
28 |
|
29 |
+
response = openai.ChatCompletion.create(
|
30 |
+
model="gpt-4o-mini",
|
31 |
messages=[
|
32 |
{"role": "system", "content": prompt},
|
33 |
{"role": "user", "content": content}
|