mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Add a comment to /v1/models
This commit is contained in:
parent
2358706453
commit
38b07493a0
@ -116,6 +116,9 @@ async def openai_chat_completions(request: Request, request_data: ChatCompletion
|
|||||||
@app.get("/v1/models")
|
@app.get("/v1/models")
|
||||||
@app.get("/v1/models/{model}")
|
@app.get("/v1/models/{model}")
|
||||||
async def handle_models(request: Request):
|
async def handle_models(request: Request):
|
||||||
|
'''
|
||||||
|
Default OpenAI endpoint; useless. You are probably looking for /v1/internal/model.
|
||||||
|
'''
|
||||||
path = request.url.path
|
path = request.url.path
|
||||||
is_list = request.url.path.split('?')[0].split('#')[0] == '/v1/models'
|
is_list = request.url.path.split('?')[0].split('#')[0] == '/v1/models'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user