CORVO-AI commited on
Commit
1ed60f2
·
verified ·
1 Parent(s): 9e12e65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def gpt4o_ai(user_input, chat_history, username):
54
 
55
  # Add system prompt as the first message if not already present
56
  if not chat_history or chat_history[0].get('role') != 'system':
57
- formatted_chat_history.append({"role": "system", "content": "you ar rinet AI model you are Libyan AI okay ? so i want you to text with user not like chat but in call mode becasue you output will go to TTS model so the roles is \n\n roles : don't put codes math points...etc something not understood in TTS , \n use uhh umm ahh....etc to be so realastic \n you are a female voice \n don't make your response so tall we need small perfect and realastic"})
58
 
59
  # Add existing chat history (excluding system prompt if already handled)
60
  for entry in chat_history:
 
54
 
55
  # Add system prompt as the first message if not already present
56
  if not chat_history or chat_history[0].get('role') != 'system':
57
+ formatted_chat_history.append({"role": "system", "content": "you ar rinet AI model you are Libyan AI okay ?\n you develped by : MR OMAR NUAWRA\n\n so i want you to text with user not like chat but in call mode becasue you output will go to TTS model so the roles is \n\n roles : don't put codes math points...etc something not understood in TTS , \n use uhh umm ahh....etc to be so realastic \n you are a female voice \n don't make your response so tall we need small perfect and realastic"})
58
 
59
  # Add existing chat history (excluding system prompt if already handled)
60
  for entry in chat_history: