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: invoke newly created callLLM() function from A4D extension #2

Merged
merged 28 commits into from
Jan 2, 2025

Conversation

daphne-sfdc
Copy link
Collaborator

This is a continuation of the previous PR, which was not merged due to a dependency on the daphne/W-17250453-send-prompt-to-llm-getChatStream branch of vscode-service-provider.

What does this PR do?

Previously, A4D extension exposed AiApiClient as a way to allow other extensions to integrate with the XGen LLM. This produced a working solution, but required some duplicate code to be copied from salesforcedx-vscode-einstein-gpt to salesforcedx-vscode-service-provider. It also required any extension that implements the getChatStream() function, such as the Prompt Engineering Playground, to handle the guts of streaming.

As a result, A4D Team has created a new function callLLM(), which packages the functionality of getChatStream() such that streaming is now handled by A4D rather than the extension that invokes it. Instead of exposing AiApiClient, A4D extension now exposes LLMService, which contains the callLLM() function.

What issues does this PR fix or reference?

@W-17396859@

daphne-sfdc and others added 28 commits November 19, 2024 13:41
…d more instructions for system and user prompts
…nd the constructed prompt to the XGen LLM - does not work because this operates outside a VSCode extension environment
…ate an XGen prompt, and get an OpenAPI v3 specification back from the LLM
…pt through vscode-service-provider in sendYamlPromptToLLM.ts
…pt through vscode-service-provider in sendApexPromptToLLM.ts
@daphne-sfdc daphne-sfdc merged commit 78fff78 into main Jan 2, 2025
1 check passed
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.

2 participants