torchchat icon indicating copy to clipboard operation
torchchat copied to clipboard

Openai api models endpoint

Open vmpuri opened this issue 6 months ago • 1 comments

Implementation of the /models endpoint https://platform.openai.com/docs/api-reference/models

Start the server:

python3 torchchat.py server stories15M  

In another terminal:

curl http://127.0.0.1:5000/models
{"data": [{"id": "stories15M", "created": 1722531822, "owner": "puri", "object": "model"}], "object": "list"}

vmpuri avatar Aug 02 '24 23:08 vmpuri