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

feat: Allow transforming sse chunk response #568

Open
grafail opened this issue Apr 26, 2024 · 0 comments
Open

feat: Allow transforming sse chunk response #568

grafail opened this issue Apr 26, 2024 · 0 comments

Comments

@grafail
Copy link

grafail commented Apr 26, 2024

Problem
Currently it is more complicated handling sse output from custom remote inference engines that do not follow the OpenAI spec

Success Criteria
Ability to transform the response similar to how "transformResponse" is used in non streaming cases

Additional context
Perhaps a function could be passed and used around this line to customise how an sse chunk is handled

https://github.com/janhq/jan/blob/0bad1a479f642c8c5183017641656d52c4b33c61/core/src/browser/extensions/engines/helpers/sse.ts#L74

@Van-QA Van-QA transferred this issue from janhq/jan May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant