Spaces:
Sleeping
Sleeping
Fix app.py imports to use proxy server instead of playground
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
from litellm.
|
|
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
-
#
|
7 |
-
|
8 |
|
9 |
@app.get("/")
|
10 |
def home():
|
11 |
-
return {"message": "LiteLLM
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from litellm.proxy.proxy_server import ProxyServer
|
3 |
+
from litellm.proxy.proxy_server import app as proxy_app
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
+
# Mount the LiteLLM Proxy server
|
8 |
+
app.mount("/proxy", proxy_app)
|
9 |
|
10 |
@app.get("/")
|
11 |
def home():
|
12 |
+
return {"message": "LiteLLM Server is running! Visit /proxy/docs for the API documentation"}
|