mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: completion chat id
This commit is contained in:
parent
1e315dc33b
commit
ac0386ae1f
1 changed files with 2 additions and 0 deletions
|
|
@ -950,6 +950,8 @@ class CustomStreamWrapper:
|
|||
return
|
||||
|
||||
def chunk_creator(self, chunk: Any): # type: ignore # noqa: PLR0915
|
||||
if hasattr(chunk, 'id'):
|
||||
self.response_id = chunk.id
|
||||
model_response = self.model_response_creator()
|
||||
response_obj: Dict[str, Any] = {}
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue