Nick088 commited on
Commit
706064a
1 Parent(s): 9257f55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -10,11 +10,9 @@ def generate_response(prompt, history, model, temperature, max_tokens, top_p, se
10
 
11
  if seed == 0:
12
  seed = random.randint(1, 100000)
13
-
14
- input_text = prompt + history
15
 
16
  stream = client.chat.completions.create(
17
- messages=input_text,
18
  model=model,
19
  temperature=temperature,
20
  max_tokens=max_tokens,
 
10
 
11
  if seed == 0:
12
  seed = random.randint(1, 100000)
 
 
13
 
14
  stream = client.chat.completions.create(
15
+ messages = history + [prompt],
16
  model=model,
17
  temperature=temperature,
18
  max_tokens=max_tokens,