mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
47 lines
1 KiB
Python
47 lines
1 KiB
Python
"""
|
|
What is this?
|
|
|
|
CRUD endpoints for managing pass-through endpoints
|
|
"""
|
|
|
|
import asyncio
|
|
import traceback
|
|
from datetime import datetime, timedelta, timezone
|
|
from typing import List, Optional
|
|
|
|
import fastapi
|
|
import httpx
|
|
from fastapi import (
|
|
APIRouter,
|
|
Depends,
|
|
File,
|
|
Form,
|
|
Header,
|
|
HTTPException,
|
|
Request,
|
|
Response,
|
|
UploadFile,
|
|
status,
|
|
)
|
|
|
|
import litellm
|
|
from litellm._logging import verbose_proxy_logger
|
|
from litellm.batches.main import FileObject
|
|
from litellm.proxy._types import *
|
|
from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get(
|
|
"/config/pass_through_endpoints/settings",
|
|
dependencies=[Depends(user_api_key_auth)],
|
|
tags=["pass-through-endpoints"],
|
|
summary="Create pass-through endpoints for provider specific endpoints - https://docs.litellm.ai/docs/proxy/pass_through",
|
|
)
|
|
async def create_fine_tuning_job(
|
|
request: Request,
|
|
fastapi_response: Response,
|
|
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
|
|
):
|
|
pass
|