Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ if 'badges' not in st.session_state:
|
|
32 |
def generate_ai_response(user_input, level):
|
33 |
prompt = f"Continue the story in a way that is engaging and suitable for a {level.lower()} English learner.\n\nStory so far:\n{''.join(st.session_state.story)}\nUser input: {user_input}\nAI continuation:"
|
34 |
response = openai.Completion.create(
|
35 |
-
engine='gpt-4o-mini'
|
36 |
prompt=prompt,
|
37 |
max_tokens=100,
|
38 |
temperature=0.7,
|
|
|
32 |
def generate_ai_response(user_input, level):
|
33 |
prompt = f"Continue the story in a way that is engaging and suitable for a {level.lower()} English learner.\n\nStory so far:\n{''.join(st.session_state.story)}\nUser input: {user_input}\nAI continuation:"
|
34 |
response = openai.Completion.create(
|
35 |
+
engine='gpt-4o-mini',
|
36 |
prompt=prompt,
|
37 |
max_tokens=100,
|
38 |
temperature=0.7,
|