fix print stement in sent_first_chunk

This commit is contained in:
ishaan-jaff 2023-09-16 11:20:32 -07:00
parent b3c981de4f
commit 296961a19b

View file

@ -2507,7 +2507,7 @@ class CustomStreamWrapper:
model_response = ModelResponse(stream=True, model=self.model) model_response = ModelResponse(stream=True, model=self.model)
try: try:
# return this for all models # return this for all models
print(f"self.sent_first_chunk: {self.sent_first_chunk}") print_verbose(f"self.sent_first_chunk: {self.sent_first_chunk}")
if self.sent_first_chunk == False: if self.sent_first_chunk == False:
model_response.choices[0].delta.role = "assistant" model_response.choices[0].delta.role = "assistant"
self.sent_first_chunk = True self.sent_first_chunk = True