abetlen commited on
Commit
8939e76
1 Parent(s): 4fe13a9
Files changed (1) hide show
  1. models.py +5 -1
models.py CHANGED
@@ -90,4 +90,8 @@ def generate(
90
  n_ubatch=512,
91
  n_batch=512,
92
  )
93
- return model.create_chat_completion(prompt)["choices"][0]["message"]["content"]
 
 
 
 
 
90
  n_ubatch=512,
91
  n_batch=512,
92
  )
93
+ print(prompt)
94
+ return model.create_chat_completion(messages=[{
95
+ "role": "user",
96
+ "content": prompt
97
+ }])["choices"][0]["message"]["content"]