This commit is contained in:
ishaan-jaff 2024-01-12 17:05:51 -08:00
parent 0ae8ab1b13
commit fd9bddc71a

View file

@ -575,6 +575,7 @@ def completion(
api_base=api_base, api_base=api_base,
api_key=api_key, api_key=api_key,
) )
model_response._hidden_params["custom_llm_provider"] = custom_llm_provider
### REGISTER CUSTOM MODEL PRICING -- IF GIVEN ### ### REGISTER CUSTOM MODEL PRICING -- IF GIVEN ###
if input_cost_per_token is not None and output_cost_per_token is not None: if input_cost_per_token is not None and output_cost_per_token is not None:
litellm.register_model( litellm.register_model(