(feat) support logprobs, top_logprobs openai

This commit is contained in:
ishaan-jaff 2023-12-26 13:59:27 +05:30
parent 871f207124
commit 7b097305c1
2 changed files with 24 additions and 2 deletions

View file

@ -423,6 +423,8 @@ def completion(
"tools",
"tool_choice",
"max_retries",
"logprobs",
"top_logprobs",
]
litellm_params = [
"metadata",
@ -572,6 +574,8 @@ def completion(
tools=tools,
tool_choice=tool_choice,
max_retries=max_retries,
logprobs=logprobs,
top_logprobs=top_logprobs,
**non_default_params,
)