mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(main.py): fix acompletion for anyscale, openrouter, deepinfra, perplexity endpoints
This commit is contained in:
parent
ba73224a3a
commit
78582e158a
3 changed files with 12 additions and 2 deletions
|
@ -582,6 +582,11 @@ async def chat_completion(request: Request, model: Optional[str] = None):
|
|||
detail=error_msg
|
||||
)
|
||||
|
||||
@router.post("/v1/embeddings", dependencies=[Depends(user_api_key_auth)])
|
||||
@router.post("/embeddings", dependencies=[Depends(user_api_key_auth)])
|
||||
async def embeddings(request: Request):
|
||||
pass
|
||||
|
||||
@router.post("/key/generate", dependencies=[Depends(user_api_key_auth)])
|
||||
async def generate_key_fn(request: Request):
|
||||
data = await request.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue