matthoffner commited on
Commit
8abd12f
1 Parent(s): 3afb5fe

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -68,7 +68,7 @@ async def generate_response(chat_chunks, llm):
68
  'role': 'system',
69
  'content': llm.detokenize(chat_chunk)
70
  },
71
- 'finish_reason': 'stop' if llm.is_eos_token(chat_chunk) else 'unknown'
72
  }
73
  ]
74
  }
 
68
  'role': 'system',
69
  'content': llm.detokenize(chat_chunk)
70
  },
71
+ 'finish_reason': 'stop' if chat_chunk == "<|end|>" else 'unknown'
72
  }
73
  ]
74
  }