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:
Krish Dholakia 2024-08-20 11:42:48 -07:00 committed by GitHub
commit f888204a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 100 additions and 25 deletions

View file

@ -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