Fix api path
This commit is contained in:
1 parent
cee335486a
commit
912c19fcff
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ router = APIRouter(
|
||||
)
|
||||
|
||||
|
||||
@router.post("/", response_model=EmbeddingsResponse)
|
||||
@router.post("", response_model=EmbeddingsResponse)
|
||||
async def embeddings(
|
||||
embeddings_request: Annotated[
|
||||
EmbeddingsRequest,
|
||||
|
||||
@@ -20,7 +20,7 @@ async def validate_model_id(model_id: str):
|
||||
raise HTTPException(status_code=500, detail="Unsupported Model Id")
|
||||
|
||||
|
||||
@router.get("/", response_model=Models)
|
||||
@router.get("", response_model=Models)
|
||||
async def list_models():
|
||||
model_list = [Model(id=model_id) for model_id in
|
||||
(SUPPORTED_BEDROCK_MODELS | SUPPORTED_BEDROCK_EMBEDDING_MODELS).keys()]
|
||||
|
||||
Reference in new issue
Block a user