File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -651,8 +651,9 @@ def _logit_bias_tokens_to_input_ids(
651651
652652@router .post (
653653 "/v1/completions" ,
654+ summary = "Completion"
654655)
655- @router .post ("/v1/engines/copilot-codex/completions" )
656+ @router .post ("/v1/engines/copilot-codex/completions" , include_in_schema = False )
656657async def create_completion (
657658 request : Request ,
658659 body : CreateCompletionRequest ,
@@ -727,6 +728,7 @@ class CreateEmbeddingRequest(BaseModel):
727728
728729@router .post (
729730 "/v1/embeddings" ,
731+ summary = "Embedding"
730732)
731733async def create_embedding (
732734 request : CreateEmbeddingRequest , llama : llama_cpp .Llama = Depends (get_llama )
@@ -816,6 +818,7 @@ class CreateChatCompletionRequest(BaseModel):
816818
817819@router .post (
818820 "/v1/chat/completions" ,
821+ summary = "Chat"
819822)
820823async def create_chat_completion (
821824 request : Request ,
@@ -880,7 +883,7 @@ class ModelList(TypedDict):
880883 data : List [ModelData ]
881884
882885
883- @router .get ("/v1/models" )
886+ @router .get ("/v1/models" , summary = "Models" )
884887async def get_models (
885888 settings : Settings = Depends (get_settings ),
886889) -> ModelList :
You can’t perform that action at this time.
0 commit comments