Nick088 commited on
Commit
ce87506
·
verified ·
1 Parent(s): 5d31a12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def generate_response(prompt, history, model, temperature, max_tokens, top_p, se
14
  stream = client.chat.completions.create(
15
  messages=[
16
  {"role": "system", "content": "you are a helpful assistant."},
17
- {"role": "user", "content": prompt}
18
  ],
19
  model=model,
20
  temperature=temperature,
 
14
  stream = client.chat.completions.create(
15
  messages=[
16
  {"role": "system", "content": "you are a helpful assistant."},
17
+ {"role": "user", "content": prompt + history}
18
  ],
19
  model=model,
20
  temperature=temperature,