To comply with actual OpenAI API streaming responses i changed the content type and the json handling in the streaming implementation of openAI-spec see #359
Before submitting
- [X] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
- [X] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request section?
- [X] Did you make sure to update the docs? --> Not applicable
- [X] Did you write any new necessary tests? --> not necessary
How does this PR impact the user?
As a user, I want to use LitServe to connect to third-party libraries or applications (such as Open WebUI) via openAI streaming API. This PR changes the LitServe OpenAI-spec to fully comply with the OAI streaming API and solve existiing connection issues.
What does this PR do?
Fixes #359
[X] passed 128/129 Tests.
[ ] test: "e2e" - "test run with port" wouldn't run, probably bc of restricted write access (not sure)
[X] retest with own code (see #359 ) worked.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
To comply with actual OpenAI API streaming responses i changed the content type and the json handling in the streaming implementation of openAI-spec see #359
Before submitting
- [X] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements) - [X] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request section? - [X] Did you make sure to update the docs? --> Not applicable - [X] Did you write any new necessary tests? --> not necessaryHow does this PR impact the user? As a user, I want to use LitServe to connect to third-party libraries or applications (such as Open WebUI) via openAI streaming API. This PR changes the LitServe OpenAI-spec to fully comply with the OAI streaming API and solve existiing connection issues.
What does this PR do?
Fixes #359
PR review
Anyone in the community is free to review the PR once the tests have passed. If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
YES 💯