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

Support stream=True in v1/completions #49

Merged
merged 6 commits into from
Jan 19, 2024
Merged

Conversation

comaniac
Copy link
Collaborator

@comaniac comaniac commented Jan 18, 2024

  • Make OpenAI API v1/completions protocol compatible with OpenAI API.
  • Support stream=True in OpenAI API v1/completions.
  • Change the delimiter to \n\n so that it could be compatible with other frameworks.
  • Add unit tests.

On my local, all tests in tests/srt/test_httpserver_* and tests/srt/test_openai_server.py are passed.

@merrymercy
Copy link
Contributor

This looks good. Let me take this over and make the frontend compatible with your new changes

@comaniac
Copy link
Collaborator Author

Sure. Feel free push necessary changes, and I'll rebase the chat completion API once this PR is merged.

@merrymercy merrymercy merged commit 61d4c93 into main Jan 19, 2024
@merrymercy merrymercy deleted the cody/openai-completion branch January 19, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants