diff --git a/src/Chat.cs b/src/Chat.cs index 125b9fc..af93abe 100644 --- a/src/Chat.cs +++ b/src/Chat.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Runtime.CompilerServices; using System.Threading; +using OllamaSharp.Models; using OllamaSharp.Models.Chat; namespace OllamaSharp; @@ -26,6 +27,11 @@ public class Chat /// Gets or sets the AI model to chat with /// public string Model { get; set; } + + /// + /// Gets or sets the RequestOptions to chat with + /// + public RequestOptions? Options { get; set; } /// /// Creates a new chat instance @@ -97,7 +103,8 @@ public async IAsyncEnumerable SendAs(ChatRole role, string message, IEnu Messages = Messages, Model = Model, Stream = !hasTools, // cannot stream if tools should be used - Tools = tools + Tools = tools, + Options = Options }; var messageBuilder = new MessageBuilder();