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(
651
651
652
652
@router .post (
653
653
"/v1/completions" ,
654
+ summary = "Completion"
654
655
)
655
- @router .post ("/v1/engines/copilot-codex/completions" )
656
+ @router .post ("/v1/engines/copilot-codex/completions" , include_in_schema = False )
656
657
async def create_completion (
657
658
request : Request ,
658
659
body : CreateCompletionRequest ,
@@ -727,6 +728,7 @@ class CreateEmbeddingRequest(BaseModel):
727
728
728
729
@router .post (
729
730
"/v1/embeddings" ,
731
+ summary = "Embedding"
730
732
)
731
733
async def create_embedding (
732
734
request : CreateEmbeddingRequest , llama : llama_cpp .Llama = Depends (get_llama )
@@ -816,6 +818,7 @@ class CreateChatCompletionRequest(BaseModel):
816
818
817
819
@router .post (
818
820
"/v1/chat/completions" ,
821
+ summary = "Chat"
819
822
)
820
823
async def create_chat_completion (
821
824
request : Request ,
@@ -880,7 +883,7 @@ class ModelList(TypedDict):
880
883
data : List [ModelData ]
881
884
882
885
883
- @router .get ("/v1/models" )
886
+ @router .get ("/v1/models" , summary = "Models" )
884
887
async def get_models (
885
888
settings : Settings = Depends (get_settings ),
886
889
) -> ModelList :
You can’t perform that action at this time.
0 commit comments