fruitpicker01 commited on
Commit
a68c099
·
verified ·
1 Parent(s): 61c2732

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def generate_message_gpt4o(prompt, gpt4o_temperature=1):
89
  }
90
  response = requests.post("https://api.openai.com/v1/chat/completions", json=data, headers=headers)
91
  response_data = response.json()
92
- return clean_message(response_data["choices"][0]["message"]["content"].strip()) + f" {gpt4o_temperature}"
93
  except Exception as e:
94
  return f"Ошибка при обращении к ChatGPT-4o-Latest: {e}"
95
 
 
89
  }
90
  response = requests.post("https://api.openai.com/v1/chat/completions", json=data, headers=headers)
91
  response_data = response.json()
92
+ return clean_message(response_data["choices"][0]["message"]["content"].strip()) + f" {temperature}"
93
  except Exception as e:
94
  return f"Ошибка при обращении к ChatGPT-4o-Latest: {e}"
95