docs: Update openapi endpoint names

This commit is contained in:
Andrei Betlen 2023-11-24 03:39:29 -05:00
parent 4026166e68
commit 1a7bf2037b

View file

@ -651,8 +651,9 @@ def _logit_bias_tokens_to_input_ids(
@router.post(
"/v1/completions",
summary="Completion"
)
@router.post("/v1/engines/copilot-codex/completions")
@router.post("/v1/engines/copilot-codex/completions", include_in_schema=False)
async def create_completion(
request: Request,
body: CreateCompletionRequest,
@ -727,6 +728,7 @@ class CreateEmbeddingRequest(BaseModel):
@router.post(
"/v1/embeddings",
summary="Embedding"
)
async def create_embedding(
request: CreateEmbeddingRequest, llama: llama_cpp.Llama = Depends(get_llama)
@ -816,6 +818,7 @@ class CreateChatCompletionRequest(BaseModel):
@router.post(
"/v1/chat/completions",
summary="Chat"
)
async def create_chat_completion(
request: Request,
@ -880,7 +883,7 @@ class ModelList(TypedDict):
data: List[ModelData]
@router.get("/v1/models")
@router.get("/v1/models", summary="Models")
async def get_models(
settings: Settings = Depends(get_settings),
) -> ModelList: