Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@vmpuri
Copy link
Contributor

@vmpuri vmpuri commented Aug 2, 2024

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"}
Screen.Recording.2024-08-05.at.3.17.57.AM.mov

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 2, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1000

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7afe0a4 with merge base a3bf37d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 2, 2024
@vmpuri vmpuri force-pushed the openai_api_models_endpoint branch from 41ccc69 to a83c682 Compare August 5, 2024 10:19
@byjlw byjlw closed this Aug 5, 2024
@vmpuri vmpuri reopened this Aug 5, 2024
@vmpuri vmpuri changed the base branch from main to openai_api_patches August 5, 2024 20:04
@vmpuri vmpuri force-pushed the openai_api_patches branch 2 times, most recently from 6401f55 to 4e26b22 Compare August 5, 2024 21:49
@vmpuri vmpuri force-pushed the openai_api_models_endpoint branch from a83c682 to 7afe0a4 Compare August 5, 2024 21:53
@vmpuri vmpuri marked this pull request as ready for review August 5, 2024 22:35
@vmpuri vmpuri merged commit 0d3a5c3 into openai_api_patches Aug 5, 2024
vmpuri added a commit that referenced this pull request Aug 5, 2024
* Add warning comments referring to unimplemented functionality

* JSON formatted response using OpenAI API types for server completion requests

* Add models endpoint (#1000)
@vmpuri vmpuri linked an issue Aug 6, 2024 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open AI API Maturity

4 participants