fix: model filter issue

This commit is contained in:
Timothy J. Baek
2024-05-17 19:11:14 -07:00
parent 3890ea1490
commit 3aa6b0fea9
4 changed files with 21 additions and 18 deletions

View File

@@ -75,6 +75,10 @@ with open(LITELLM_CONFIG_DIR, "r") as file:
litellm_config = yaml.safe_load(file)
app.state.ENABLE_MODEL_FILTER = ENABLE_MODEL_FILTER
app.state.MODEL_FILTER_LIST = MODEL_FILTER_LIST
app.state.ENABLE = ENABLE_LITELLM
app.state.CONFIG = litellm_config
@@ -151,10 +155,6 @@ async def shutdown_litellm_background():
background_process = None
app.state.ENABLE_MODEL_FILTER = ENABLE_MODEL_FILTER
app.state.MODEL_FILTER_LIST = MODEL_FILTER_LIST
@app.get("/")
async def get_status():
return {"status": True}