mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
Merge pull request #14548 from nearai-cloud/fix/completion-chat-id
fix: completion chat id
This commit is contained in:
commit
37aa8fff5e
1 changed files with 2 additions and 0 deletions
|
|
@ -1024,6 +1024,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