mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
refactor(anthropic): drop docstring per repo comment policy
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
5b59e6b80c
commit
fe8f9b248e
1 changed files with 0 additions and 7 deletions
|
|
@ -2120,13 +2120,6 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):
|
|||
|
||||
@staticmethod
|
||||
def get_request_inference_geo(params: Mapping[str, Any] | None) -> str | None:
|
||||
"""
|
||||
Read the region a request asked to be served from.
|
||||
|
||||
Anthropic echoes ``inference_geo`` on response usage for some surfaces but not all, and the
|
||||
streamed usage LiteLLM reassembles can lose it, so the requested region keeps geo pricing
|
||||
keyed on something when the response does not carry one.
|
||||
"""
|
||||
if not params:
|
||||
return None
|
||||
value: Final = params.get("inference_geo")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue