refac: switch to meta and params, remove source

This commit is contained in:
Jun Siang Cheah committed 2024-05-21 22:05:16 +01:00
1 parent 7ccef3e77a
commit f21c8626d6
12 files changed
+70 -107

No files matched your search

+1 -3
View File
@@ -78,9 +78,7 @@ with open(LITELLM_CONFIG_DIR, "r") as file:
app.state.ENABLE_MODEL_FILTER = ENABLE_MODEL_FILTER.value
app.state.MODEL_FILTER_LIST = MODEL_FILTER_LIST.value
app.state.MODEL_CONFIG = [
model.to_form() for model in Models.get_all_models_by_source("litellm")
]
app.state.MODEL_CONFIG = Models.get_all_models()
app.state.ENABLE = ENABLE_LITELLM
app.state.CONFIG = litellm_config