Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openai api compatibility #1034

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Openai api compatibility #1034

merged 1 commit into from
Aug 19, 2024

Conversation

vmpuri
Copy link
Contributor

@vmpuri vmpuri commented Aug 15, 2024

Ensure basic compatibility with OpenAI API via a Streamlit browser app.

Using the examples on Streamlit's website, I've changed the browser app to query the torchchat OpenAI API server. I've added:

  • Streamed responses
  • Token limit
  • Chat context reset button
Screen.Recording.2024-08-19.at.12.04.39.PM-2.mov

Copy link

pytorch-bot bot commented Aug 15, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2da6299 with merge base c7f56f2 (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 15, 2024
@vmpuri vmpuri changed the base branch from main to openai_api_chat_correctness August 16, 2024 23:12
@vmpuri vmpuri marked this pull request as ready for review August 16, 2024 23:12
@vmpuri vmpuri requested review from Jack-Khuu and byjlw August 16, 2024 23:12
api/api.py Outdated Show resolved Hide resolved
@Jack-Khuu
Copy link
Contributor

Can you add a description here?

api/api.py Outdated Show resolved Hide resolved
browser/browser.py Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
@vmpuri vmpuri force-pushed the openai_api_compatibility branch from b1ac2df to 716d4a5 Compare August 19, 2024 19:19
@vmpuri vmpuri changed the base branch from openai_api_chat_correctness to main August 19, 2024 19:20
@vmpuri vmpuri force-pushed the openai_api_compatibility branch from 716d4a5 to 6b97a10 Compare August 19, 2024 19:22
@vmpuri vmpuri force-pushed the openai_api_compatibility branch from 6b97a10 to 2da6299 Compare August 19, 2024 19:46
@vmpuri vmpuri merged commit e3ec7ac into main Aug 19, 2024
51 checks passed
vmpuri added a commit that referenced this pull request Aug 19, 2024
This was referenced Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

3 participants