feat(sagemaker.py): aioboto3 streaming support

This commit is contained in:
Krrish Dholakia 2024-02-12 21:18:34 -08:00
parent 23c410a548
commit 5de569fcb1
4 changed files with 80 additions and 13 deletions

View file

@ -8691,6 +8691,8 @@ class CustomStreamWrapper:
or self.custom_llm_provider == "ollama"
or self.custom_llm_provider == "ollama_chat"
or self.custom_llm_provider == "vertex_ai"
or self.custom_llm_provider == "sagemaker"
or self.custom_llm_provider in litellm.openai_compatible_endpoints
):
print_verbose(
f"value of async completion stream: {self.completion_stream}"