Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -346,7 +346,7 @@ def create_interface():
|
|
346 |
|
347 |
# NEW FORMAT: Use the new game state formatting
|
348 |
game_state = game.format_game_state()
|
349 |
-
print("Sending game state to model:")
|
350 |
print(game_state)
|
351 |
|
352 |
# Get AI response
|
@@ -355,9 +355,9 @@ def create_interface():
|
|
355 |
{"role": "system", "content": SYSTEM_PROMPT},
|
356 |
{"role": "user", "content": game_state}
|
357 |
],
|
358 |
-
temperature=0.
|
359 |
top_p=0.95,
|
360 |
-
max_tokens=
|
361 |
)
|
362 |
|
363 |
ai_response = response['choices'][0]['message']['content']
|
|
|
346 |
|
347 |
# NEW FORMAT: Use the new game state formatting
|
348 |
game_state = game.format_game_state()
|
349 |
+
#print("Sending game state to model:")
|
350 |
print(game_state)
|
351 |
|
352 |
# Get AI response
|
|
|
355 |
{"role": "system", "content": SYSTEM_PROMPT},
|
356 |
{"role": "user", "content": game_state}
|
357 |
],
|
358 |
+
temperature=0.6,
|
359 |
top_p=0.95,
|
360 |
+
max_tokens=1024
|
361 |
)
|
362 |
|
363 |
ai_response = response['choices'][0]['message']['content']
|