refactor: add CustomStreamWrapper return type for completion

This commit is contained in:
zeeland 2023-12-13 22:57:19 +08:00
parent c9b83ff853
commit 79ea466cf5

View file

@ -284,7 +284,7 @@ def completion(
# Optional liteLLM function params
**kwargs,
) -> ModelResponse:
) -> Union[ModelResponse, CustomStreamWrapper]:
"""
Perform a completion() using any of litellm supported llms (example gpt-4, gpt-3.5-turbo, claude-2, command-nightly)
Parameters: