mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-14 02:22:54 +00:00
Merge pull request #14548 from nearai-cloud/fix/completion-chat-id
fix: completion chat id
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user