Merge pull request #1112 from Undertone0809/add-cs-return-type-for-completion

refactor: add CustomStreamWrapper return type for completion
This commit is contained in:
Ishaan Jaff 2023-12-14 16:52:11 +05:30 committed by GitHub
commit 9bb69d10d0

View file

@ -285,7 +285,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: