fix issue when databrick use external model, the delta could be empty content (#10540)

This commit is contained in:
frank 2025-05-06 12:18:45 +08:00 committed by GitHub
parent 5f47df4627
commit 0184fddbb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -543,7 +543,7 @@ class DatabricksChatResponseIterator(BaseModelResponseIterator):
reasoning_content,
thinking_blocks,
) = DatabricksConfig.extract_reasoning_content(
choice["delta"]["content"]
choice["delta"].get("content")
)
choice["delta"]["content"] = content_str