This commit is contained in:
Ashwin Bharambe 2024-10-18 20:46:48 -07:00
parent 072d1b7205
commit fedc11b726
2 changed files with 5 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class MetaReferenceInferenceImpl(Inference, ModelsProtocolPrivate):
def impl():
stop_reason = None
for token_result in self.generator.chat_completion(request):
for token_result in self.generator.completion(request):
if token_result.text == "<|eot_id|>":
stop_reason = StopReason.end_of_turn
text = ""