mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
feat(sagemaker.py): aioboto3 streaming support
This commit is contained in:
parent
23c410a548
commit
5de569fcb1
4 changed files with 80 additions and 13 deletions
|
@ -1562,7 +1562,7 @@ def completion(
|
|||
print_verbose(f"ENTERS SAGEMAKER CUSTOMSTREAMWRAPPER")
|
||||
from .llms.sagemaker import TokenIterator
|
||||
|
||||
tokenIterator = TokenIterator(model_response)
|
||||
tokenIterator = TokenIterator(model_response, acompletion=acompletion)
|
||||
response = CustomStreamWrapper(
|
||||
completion_stream=tokenIterator,
|
||||
model=model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue