text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

FastAPI docs support (http://127.0.0.1:7861/docs)

Open yiouyou opened this issue 1 year ago • 1 comments

Description

When opening the URL http://127.0.0.1:7861/docs, /api/v1/generate doesn't showed up. But if you try to run api-example.py, it works. I'm not sure if it's due to the setup of API through api extension, or something else. Since the text-generation-webui is the A1111 of chatGPT, I'd like to have the FastAPI docs support as A1111 does. Thanks!!!

Additional Context

Attached is the http://127.0.0.1:7861/docs right now:, in which /api/v1/generate is not there and if you try /api/{api_name} with api_name equals "v1/generate", it won't work. image

yiouyou avatar May 01 '23 16:05 yiouyou

The api does not use FastAPI.

LaaZa avatar May 01 '23 17:05 LaaZa

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.

github-actions[bot] avatar May 31 '23 23:05 github-actions[bot]