diff --git a/litellm/proxy/chatgpt_oauth_endpoints/endpoints.py b/litellm/proxy/chatgpt_oauth_endpoints/endpoints.py index a2e5faa2f96..144a1ef853c 100644 --- a/litellm/proxy/chatgpt_oauth_endpoints/endpoints.py +++ b/litellm/proxy/chatgpt_oauth_endpoints/endpoints.py @@ -114,7 +114,6 @@ def _get_session(session_id: str) -> Optional[Dict[str, Any]]: @router.post( "/start", response_model=StartResponse, - dependencies=[Depends(user_api_key_auth)], ) async def start_oauth( body: StartRequest, @@ -177,7 +176,6 @@ async def start_oauth( @router.get( "/status", response_model=StatusResponse, - dependencies=[Depends(user_api_key_auth)], ) async def oauth_status( session_id: str = Query( @@ -198,7 +196,6 @@ async def oauth_status( @router.post( "/cancel", - dependencies=[Depends(user_api_key_auth)], ) async def oauth_cancel( session_id: str = Query( @@ -221,7 +218,6 @@ async def oauth_cancel( @router.post( "/refresh", response_model=RefreshResponse, - dependencies=[Depends(user_api_key_auth)], ) async def oauth_refresh( body: RefreshRequest, diff --git a/litellm/proxy/copilot_oauth_endpoints/endpoints.py b/litellm/proxy/copilot_oauth_endpoints/endpoints.py index 74d5d4dd44d..061e2bea0f3 100644 --- a/litellm/proxy/copilot_oauth_endpoints/endpoints.py +++ b/litellm/proxy/copilot_oauth_endpoints/endpoints.py @@ -101,7 +101,6 @@ def _get_session(session_id: str) -> Optional[Dict[str, Any]]: @router.post( "/start", response_model=StartResponse, - dependencies=[Depends(user_api_key_auth)], ) async def start_oauth( body: StartRequest, @@ -163,7 +162,6 @@ async def start_oauth( @router.get( "/status", response_model=StatusResponse, - dependencies=[Depends(user_api_key_auth)], ) async def oauth_status( session_id: str = Query( @@ -184,7 +182,6 @@ async def oauth_status( @router.post( "/cancel", - dependencies=[Depends(user_api_key_auth)], ) async def oauth_cancel( session_id: str = Query( @@ -207,7 +204,6 @@ async def oauth_cancel( @router.post( "/refresh", response_model=RefreshResponse, - dependencies=[Depends(user_api_key_auth)], ) async def oauth_refresh( body: RefreshRequest, diff --git a/ui/litellm-dashboard/src/components/model_add/credentials.tsx b/ui/litellm-dashboard/src/components/model_add/credentials.tsx index 61a0b08c5d3..2678a3bbcd6 100644 --- a/ui/litellm-dashboard/src/components/model_add/credentials.tsx +++ b/ui/litellm-dashboard/src/components/model_add/credentials.tsx @@ -9,7 +9,6 @@ import { import { PencilAltIcon, RefreshIcon, TrashIcon } from "@heroicons/react/outline"; import { Badge, - Button, Card, Table, TableBody, @@ -19,7 +18,7 @@ import { TableRow, Text, } from "@tremor/react"; -import { Button as AntdButton, Form, Tooltip } from "antd"; +import { Button, Form, Tooltip } from "antd"; import { UploadProps } from "antd/es/upload"; import { useState } from "react"; import DeleteResourceModal from "../common_components/DeleteResourceModal"; @@ -192,7 +191,7 @@ const CredentialsPanel: React.FC = ({ uploadProps }) => { - } @@ -204,7 +203,7 @@ const CredentialsPanel: React.FC = ({ uploadProps }) => { {getOAuthRefreshCall(credential) && ( - } @@ -214,7 +213,7 @@ const CredentialsPanel: React.FC = ({ uploadProps }) => { )} - }