Merge pull request #4065 from BerriAI/litellm_use_common_func

[Refactor] - Refactor proxy_server.py to use common function for `add_litellm_data_to_request`
This commit is contained in:
Ishaan Jaff 2024-06-07 14:02:17 -07:00 committed by GitHub
commit d9dacc1f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 264 additions and 806 deletions

View file

@ -4927,7 +4927,6 @@ def get_litellm_params(
input_cost_per_token=None,
output_cost_per_token=None,
output_cost_per_second=None,
litellm_parent_otel_span=None,
):
litellm_params = {
"acompletion": acompletion,
@ -4950,7 +4949,6 @@ def get_litellm_params(
"input_cost_per_second": input_cost_per_second,
"output_cost_per_token": output_cost_per_token,
"output_cost_per_second": output_cost_per_second,
"litellm_parent_otel_span": litellm_parent_otel_span,
}
return litellm_params