LLamaSharp/LLama.Examples
xbotter a2b26faa7a
🔧 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.
2023-12-01 21:39:31 +08:00
..
Assets revert a change. 2023-11-25 02:06:25 +08:00
Examples 🔧 Refactor chat completion implementation 2023-12-01 21:39:31 +08:00
Extensions Moved spinner out to an extension, so it can easily be used in other examples 2023-09-24 19:24:52 +01:00
LLama.Examples.csproj build(deps): bump Spectre.Console from 0.47.0 to 0.48.0 2023-11-27 06:17:53 +00:00
Program.cs 🔀 Remove unused code and update examples 2023-11-15 15:37:22 +08:00
RepoUtils.cs Add Embedding for Semantic Kernel 2023-09-01 22:42:13 +09:00