mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-18 00:48:01 +00:00
Merge branch 'main' into main
This commit is contained in:
+12
-2
@@ -47,9 +47,19 @@ COPY --from=builder /wheels/ /wheels/
|
||||
# Install the built wheel using pip; again using a wildcard if it's the only file
|
||||
RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl && rm -rf /wheels
|
||||
|
||||
# Generate prisma client
|
||||
RUN prisma generate
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
EXPOSE 4000/tcp
|
||||
|
||||
ENTRYPOINT ["litellm"]
|
||||
CMD ["--port", "4000", "--config", "./proxy_server_config.yaml", "--detailed_debug"]
|
||||
# # Set your entrypoint and command
|
||||
RUN echo "app contents"
|
||||
|
||||
# List contents of /app
|
||||
RUN ls -la /app
|
||||
|
||||
|
||||
ENTRYPOINT ["python3", "/app/litellm/proxy/proxy_cli.py"]
|
||||
|
||||
CMD ["--port", "4000"]
|
||||
|
||||
@@ -2859,6 +2859,7 @@ async def user_auth(request: Request):
|
||||
|
||||
@app.get("/google-login/key/generate", tags=["experimental"])
|
||||
async def google_login(request: Request):
|
||||
|
||||
GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI")
|
||||
GOOGLE_CLIENT_ID = (
|
||||
"246483686424-clje5sggkjma26ilktj6qssakqhoon0m.apps.googleusercontent.com"
|
||||
@@ -2870,7 +2871,6 @@ async def google_login(request: Request):
|
||||
@app.get("/google-callback", tags=["experimental"], response_model=GenerateKeyResponse)
|
||||
async def google_callback(code: str, request: Request):
|
||||
import httpx
|
||||
|
||||
GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI")
|
||||
GOOGLE_CLIENT_ID = (
|
||||
"246483686424-clje5sggkjma26ilktj6qssakqhoon0m.apps.googleusercontent.com"
|
||||
|
||||
Reference in New Issue
Block a user