Merge pull request #14548 from nearai-cloud/fix/completion-chat-id

fix: completion chat id
This commit is contained in:
Krish Dholakia 2025-09-14 00:42:04 -07:00 committed by GitHub
commit 37aa8fff5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: