SamiKoen commited on
Commit
9a4d457
·
verified ·
1 Parent(s): 78c0109

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -787,15 +787,15 @@ def chatbot_fn(user_message, history, image=None):
787
  messages = system_messages + history + [{"role": "user", "content": user_message}]
788
 
789
  payload = {
790
- "model": "gpt-5.1-chat-latest",
791
- "messages": messages,
792
- "temperature": 0.2,
793
- "top_p": 1,
794
- "n": 1,
795
- "stream": True,
796
- "presence_penalty": 0,
797
- "frequency_penalty": 0,
798
- }
799
  headers = {
800
  "Content-Type": "application/json",
801
  "Authorization": f"Bearer {OPENAI_API_KEY}"
 
787
  messages = system_messages + history + [{"role": "user", "content": user_message}]
788
 
789
  payload = {
790
+ "model": "gpt-5.1-chat-latest",
791
+ "messages": messages,
792
+ "temperature": 0.0,
793
+ "top_p": 1,
794
+ "stream": True,
795
+ "presence_penalty": 0,
796
+ "frequency_penalty": 0,
797
+ "n": 1,
798
+ }
799
  headers = {
800
  "Content-Type": "application/json",
801
  "Authorization": f"Bearer {OPENAI_API_KEY}"