mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
refactor(anthropic): drop redundant dict guard on litellm_params
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
116194cd6f
commit
82a64de9a2
1 changed files with 2 additions and 4 deletions
|
|
@ -236,7 +236,7 @@ class AnthropicChatCompletion(BaseLLM):
|
|||
json_mode=json_mode,
|
||||
speed=optional_params.get("speed") if optional_params else None,
|
||||
inference_geo=AnthropicConfig.get_request_inference_geo(optional_params)
|
||||
or AnthropicConfig.get_request_inference_geo(litellm_params if isinstance(litellm_params, dict) else None),
|
||||
or AnthropicConfig.get_request_inference_geo(litellm_params),
|
||||
tool_name_reverse_map=(
|
||||
litellm_params.get(ANTHROPIC_TOOL_NAME_REVERSE_MAP_KEY) if isinstance(litellm_params, dict) else None
|
||||
),
|
||||
|
|
@ -459,9 +459,7 @@ class AnthropicChatCompletion(BaseLLM):
|
|||
json_mode=json_mode,
|
||||
speed=optional_params.get("speed") if optional_params else None,
|
||||
inference_geo=AnthropicConfig.get_request_inference_geo(optional_params)
|
||||
or AnthropicConfig.get_request_inference_geo(
|
||||
litellm_params if isinstance(litellm_params, dict) else None
|
||||
),
|
||||
or AnthropicConfig.get_request_inference_geo(litellm_params),
|
||||
tool_name_reverse_map=(
|
||||
litellm_params.get(ANTHROPIC_TOOL_NAME_REVERSE_MAP_KEY)
|
||||
if isinstance(litellm_params, dict)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue