Guiyom commited on
Commit
2a2fe69
·
1 Parent(s): e4ee05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -18,10 +18,15 @@ def generate_story(character1, character2, character3, character4, localizer, ag
18
 
19
  # Define the request to the OpenAI API
20
  response = openai.ChatCompletion.create(
21
- engine="gpt-3.5-turbo",
22
- prompt=inject,
23
  temperature=0.9,
24
- max_tokens=1000
 
 
 
 
 
25
  )
26
 
27
  # Return the story
 
18
 
19
  # Define the request to the OpenAI API
20
  response = openai.ChatCompletion.create(
21
+ model="gpt-3.5-turbo",
22
+ messages=inject,
23
  temperature=0.9,
24
+ max_tokens=1000,
25
+ top_p=1,
26
+ n=1,
27
+ frequency_penalty=0,
28
+ presence_penalty=0,
29
+ stop=None
30
  )
31
 
32
  # Return the story