jost commited on
Commit
5996355
1 Parent(s): 199404a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,13 +90,13 @@ def predict(
90
 
91
  response1 = client.chat.completions.create(
92
  model=model1,
93
- prompt=prompt,
94
  temperature=temperature,
95
  max_tokens=1000).choices[0].message.content
96
 
97
  response2 = client.chat.completions.create(
98
  model=model2,
99
- prompt=prompt,
100
  temperature=temperature,
101
  max_tokens=1000).choices[0].message.content
102
 
 
90
 
91
  response1 = client.chat.completions.create(
92
  model=model1,
93
+ messages=[{"role": "user", "content": prompt},],
94
  temperature=temperature,
95
  max_tokens=1000).choices[0].message.content
96
 
97
  response2 = client.chat.completions.create(
98
  model=model2,
99
+ messages=[{"role": "user", "content": prompt},],
100
  temperature=temperature,
101
  max_tokens=1000).choices[0].message.content
102