Thanks to visit codestin.com
Credit goes to github.com

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

feat: Allow transforming sse chunk response #568

@grafail

Description

@grafail

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions