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

🔧 Refactor Semantic Kernel chat completion implementation #341

Merged
merged 2 commits into from
Dec 9, 2023

Commits on Dec 1, 2023

  1. 🔧 Refactor chat completion implementation

    - Refactored the chat completion implementation in `LLamaSharpChatCompletion.cs` to use `StatelessExecutor` instead of `InteractiveExecutor`.
    - Updated the chat history prompt in `LLamaSharpChatCompletion.cs` to include a conversation between the assistant and the user.
    - Modified the `HistoryTransform` class in `HistoryTransform.cs` to append the assistant role to the chat history prompt.
    - Updated the constructor of `LLamaSharpChatCompletion` to accept optional parameters for `historyTransform` and `outputTransform`.
    - Modified the `GetChatCompletionsAsync` and `GetChatCompletions` methods in `LLamaSharpChatCompletion.cs` to use the new `StatelessExecutor` and `outputTransform`.
    - Updated the `ExtensionMethods.cs` file to include the assistant and system roles in the list of anti-prompts.
    xbotter committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    a2b26fa View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Configuration menu
    Copy the full SHA
    22a775e View commit details
    Browse the repository at this point in the history