mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Merge pull request #5287 from BerriAI/litellm_fix_response_cost_cal
fix(cost_calculator.py): only override base model if custom pricing is set
This commit is contained in:
commit
e49e454929
5 changed files with 100 additions and 25 deletions
|
@ -1276,6 +1276,8 @@ def _get_request_ip_address(
|
|||
client_ip = request.headers["x-forwarded-for"]
|
||||
elif request.client is not None:
|
||||
client_ip = request.client.host
|
||||
else:
|
||||
client_ip = ""
|
||||
|
||||
return client_ip
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue