forked from phoenix/litellm-mirror
feat(main.py): allow updating model cost via completion()
This commit is contained in:
parent
4c1ef4e270
commit
0d200cd8dc
3 changed files with 27 additions and 3 deletions
|
@ -1794,7 +1794,6 @@ def register_model(model_cost: Union[str, dict]):
|
|||
for key, value in loaded_model_cost.items():
|
||||
## override / add new keys to the existing model cost dictionary
|
||||
litellm.model_cost[key] = loaded_model_cost[key]
|
||||
|
||||
# add new model names to provider lists
|
||||
if value.get('litellm_provider') == 'openai':
|
||||
if key not in litellm.open_ai_chat_completion_models:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue