torchchat
torchchat copied to clipboard
Openai api models endpoint
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"}