suhasg commited on
Commit
9603aa4
·
1 Parent(s): 80a67e8

changed the message format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def split_docs(documents, chunk_size=1000, chunk_overlap=20):
29
  return docs
30
 
31
  def make_api_call(gpt_assistant_prompt, gpt_user_prompt):
32
- message = [{"role": "assistant", "content": gpt_assistant_prompt}, {"role": "user", "content": gpt_user_prompt}]
33
  temperature = 0.0
34
  max_tokens = 1000
35
  #frequency_penalty = 0.0
 
29
  return docs
30
 
31
  def make_api_call(gpt_assistant_prompt, gpt_user_prompt):
32
+ message = f"{gpt_assistant_prompt}\n\n{gpt_user_prompt}"
33
  temperature = 0.0
34
  max_tokens = 1000
35
  #frequency_penalty = 0.0