LLamaSharp/LLama.SemanticKernel/ChatCompletion
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
..
ChatRequestSettings.cs Added a converter similar to the Open AI one 2023-11-18 21:42:34 -06:00
ChatRequestSettingsConverter.cs Added a converter similar to the Open AI one 2023-11-18 21:42:34 -06:00
HistoryTransform.cs 🔧 Refactor chat completion implementation 2023-12-01 21:39:31 +08:00
LLamaSharpChatCompletion.cs 🔧 Refactor chat completion implementation 2023-12-01 21:39:31 +08:00
LLamaSharpChatMessage.cs bump semantic kernel 1.0.0-beta8 2023-11-17 21:17:27 +08:00
LLamaSharpChatResult.cs bump semantic kernel 1.0.0-beta8 2023-11-17 21:17:27 +08:00