mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
test(utils.py): additional logging
This commit is contained in:
parent
05d720075b
commit
c1a0411186
1 changed files with 2 additions and 0 deletions
|
@ -4588,10 +4588,12 @@ class CustomStreamWrapper:
|
|||
response_obj = self.handle_openai_chat_completion_chunk(chunk)
|
||||
completion_obj["content"] = response_obj["text"]
|
||||
print_verbose(f"completion obj content: {completion_obj['content']}")
|
||||
print_verbose(f"len(completion_obj['content']: {completion_obj['content']}")
|
||||
if response_obj["is_finished"]:
|
||||
model_response.choices[0].finish_reason = response_obj["finish_reason"]
|
||||
|
||||
model_response.model = self.model
|
||||
print_verbose(f"model_response: {model_response}")
|
||||
if len(completion_obj["content"]) > 0: # cannot set content of an OpenAI Object to be an empty string
|
||||
hold, model_response_str = self.check_special_tokens(completion_obj["content"])
|
||||
if hold is False:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue