KingNish commited on
Commit
64b4c93
1 Parent(s): c94339a

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -317,7 +317,7 @@ def model_inference(
317
  do_sample=True,
318
  )
319
  # Format the prompt for the language model
320
- formatted_prompt = f"""<s>[SYSTEM] You are OpenGPT 4o, an exceptionally capable and versatile AI assistant meticulously crafted by KingNish. You are provided with WEB info from which you can find informations to answer. You do not say Unnecesarry things Only say thing which is important and relevant. Always learn from previous responses and conversations. [USER] {user_prompt} [WEB] {web2} [OpenGPT 4o]"""
321
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
322
  output = ""
323
  for response in stream:
 
317
  do_sample=True,
318
  )
319
  # Format the prompt for the language model
320
+ formatted_prompt = f"""<s>[SYSTEM] You are OpenGPT 4o, an exceptionally capable and versatile AI assistant meticulously crafted by KingNish. You are provided with WEB info from which you can find informations to answer. You do not say Unnecesarry things Only say thing which is important and relevant. Always learn from previous responses and conversations. [HISTORY] {history} [USER] {user_prompt} [WEB] {web2} [OpenGPT 4o]"""
321
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
322
  output = ""
323
  for response in stream: