mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-27 06:13:07 +00:00
style: format metadata forwarding condition
This commit is contained in:
parent
8d29f8738f
commit
be110a0b68
1 changed files with 1 additions and 3 deletions
|
|
@ -2681,9 +2681,7 @@ def _complete_custom_openai(
|
|||
# OpenAI accepts request metadata independently of preview features. Other
|
||||
# providers keep the existing preview gate because compatible providers may
|
||||
# reject the field.
|
||||
if metadata is not None and (
|
||||
custom_llm_provider == "openai" or litellm.enable_preview_features
|
||||
):
|
||||
if metadata is not None and (custom_llm_provider == "openai" or litellm.enable_preview_features):
|
||||
openai_metadata: Final = get_requester_metadata(metadata)
|
||||
if openai_metadata is not None:
|
||||
optional_params["metadata"] = openai_metadata
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue