xu song commited on
Commit
46ea35b
·
1 Parent(s): 4e4c514
Files changed (1) hide show
  1. models/cpp_qwen2.py +1 -1
models/cpp_qwen2.py CHANGED
@@ -117,7 +117,7 @@ class Qwen2Simulator(Simulator):
117
  if stream["choices"][0]["finish_reason"] is None:
118
  yield stream["choices"][0]["completion_text"], stream["choices"][0]["completion_tokens"]
119
  else:
120
- print(f'finish with text: {stream["choices"][0]["completion_text"]}, tokens: {stream["choices"][0]["completion_tokens"]}')
121
 
122
 
123
 
 
117
  if stream["choices"][0]["finish_reason"] is None:
118
  yield stream["choices"][0]["completion_text"], stream["choices"][0]["completion_tokens"]
119
  else:
120
+ print(f'finish_reason with text: {stream["choices"][0]["text"]}')
121
 
122
 
123