(feat) proxy - remove streamlit ui on startup

This commit is contained in:
ishaan-jaff 2024-01-01 12:54:23 +05:30
parent 20236c1c69
commit 52db2a6040
2 changed files with 1 additions and 5 deletions

View file

@ -374,7 +374,7 @@ async def run_streamlit_ui():
while True:
await asyncio.sleep(3600)
except Exception as e:
print(f"An error occurred: {e}")
print_verbose(f"Admin UI - Streamlit. An error occurred: {e}")
def cost_tracking():
@ -1013,9 +1013,6 @@ async def startup_event():
duration=None, models=[], aliases={}, config={}, spend=0, token=master_key
)
# Run streamlit_ui as a background task
asyncio.create_task(run_streamlit_ui())
#### API ENDPOINTS ####
@router.get(

View file

@ -15,7 +15,6 @@ async_generator==1.10.0 # for async ollama calls
traceloop-sdk==0.5.3 # for open telemetry logging
langfuse>=2.0.0 # for langfuse self-hosted logging
orjson==3.9.7 # fast /embedding responses
streamlit==1.27.2 # for admin ui
### LITELLM PACKAGE DEPENDENCIES
python-dotenv>=0.2.0 # for env
tiktoken>=0.4.0 # for calculating usage