Shaltiel commited on
Commit
d2d0697
1 Parent(s): c345d6a

Printed completion

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def model_chat(query: Optional[str], history: Optional[History]) -> Generator[Tu
45
  )
46
  messages.append({'role': 'assistant', 'content': ''})
47
  for completion in gen:
48
- text = completion.choices[0].message.content
 
49
  messages[-1]['content'] += text
50
  history = messages_to_history(messages)
51
  yield '', history
 
45
  )
46
  messages.append({'role': 'assistant', 'content': ''})
47
  for completion in gen:
48
+ print(completion)
49
+ text = completion.choices[0].content
50
  messages[-1]['content'] += text
51
  history = messages_to_history(messages)
52
  yield '', history