dindizz commited on
Commit
ea0ca28
·
verified ·
1 Parent(s): 6b721d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.chat.completions.create(
30
- model="gpt-3.5-turbo",
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}