mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
update docs
This commit is contained in:
parent
3bbe09ceb9
commit
c9e1088fda
2 changed files with 3 additions and 3 deletions
|
|
@ -97,9 +97,9 @@ class VolcEngineChatConfig(OpenAILikeChatConfig):
|
|||
and isinstance(thinking_value, dict)
|
||||
and thinking_value.get("type", None) in ["enabled", "disabled", "auto"], # legal values, see docs
|
||||
):
|
||||
# Add thinking parameter to extra_body for all other cases
|
||||
# Add thinking parameter to extra_body for all legal cases
|
||||
optional_params.setdefault("extra_body", {})["thinking"] = thinking_value
|
||||
else:
|
||||
# Skip adding thinking parameter when it's not set
|
||||
# Skip adding thinking parameter when it's not set or has invalid value
|
||||
pass
|
||||
return optional_params
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class TestVolcEngineConfig:
|
|||
drop_params=False,
|
||||
)
|
||||
|
||||
# Fixed: thinking disabled should be omitted from extra_body
|
||||
# Fixed: thinking disabled should appear in extra_body
|
||||
assert mapped_params == {
|
||||
"extra_body": {"thinking": {"type": "disabled"}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue