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

Add transform function to dreamcode #120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Nils-Schiwek
Copy link

What are you trying to accomplish?

I wanted to show a common use-case for the copilot-extension-sdk, as it might be used as a transformation function between LLMs. In this use-case a node service (or azure function) is serving an endpoint for copilot chat. This endpoint uses the message content from copilot to call an external streaming endpoint (for example an enterprise RAG LLM). The returned server-sent event stream is then transformed from the specific enterprise implementation to the copilot events by an intermediate function.

What approach did you choose and why?

There is currently no function in preview-sdk, which parses the sse-items. But the use of sse is a de-facto industry standard for llms by now. In my point of view it would be a good idea to streamline this into the sdk as well.

What should reviewers focus on?

Please focus on the readable-stream flow and chunk parser functions. These are the parts, that I would expect to be integrated into the sdk.

If you have any questions or further suggestions, feel free to contact me.

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.

1 participant