mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Merge pull request #144 from yujonglee/fix-modelresponse-typing
Fix ModelResponse typing
This commit is contained in:
commit
3d1934a829
4 changed files with 8 additions and 11 deletions
|
@ -40,7 +40,7 @@ def completion(
|
|||
# model specific optional params
|
||||
# used by text-bison only
|
||||
top_k=40, request_timeout=0, # unused var for old version of OpenAI API
|
||||
):
|
||||
) -> ModelResponse:
|
||||
try:
|
||||
model_response = ModelResponse()
|
||||
if azure: # this flag is deprecated, remove once notebooks are also updated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue