Fix api path

This commit is contained in:
Aiden Dai
2024-04-03 20:29:50 +08:00
parent cee335486a
commit 912c19fcff
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ router = APIRouter(
) )
@router.post("/", response_model=EmbeddingsResponse) @router.post("", response_model=EmbeddingsResponse)
async def embeddings( async def embeddings(
embeddings_request: Annotated[ embeddings_request: Annotated[
EmbeddingsRequest, EmbeddingsRequest,

View File

@@ -20,7 +20,7 @@ async def validate_model_id(model_id: str):
raise HTTPException(status_code=500, detail="Unsupported Model Id") raise HTTPException(status_code=500, detail="Unsupported Model Id")
@router.get("/", response_model=Models) @router.get("", response_model=Models)
async def list_models(): async def list_models():
model_list = [Model(id=model_id) for model_id in model_list = [Model(id=model_id) for model_id in
(SUPPORTED_BEDROCK_MODELS | SUPPORTED_BEDROCK_EMBEDDING_MODELS).keys()] (SUPPORTED_BEDROCK_MODELS | SUPPORTED_BEDROCK_EMBEDDING_MODELS).keys()]