mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(feat) support logprobs, top_logprobs openai
This commit is contained in:
parent
871f207124
commit
7b097305c1
2 changed files with 24 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue