>>109657172
>Right, the other thing was it's inflexible as fuck with the options, so it wasn't possible to actually turn off Gemma's reasoning
It's a pain, but it is possible and I've done it before.
var executionSettings = new OpenAIPromptExecutionSettings
{
ServiceId = "Completion",
ExtraBody = new Dictionary<string, object>
{
["chat_template_kwargs"] = new Dictionary<string, object>
{
["enable_thinking"] = false
}
}
};
var kernelArguments = new KernelArguments(executionSettings);
var result = await kernel.InvokeAsync(kernelFunction, kernelArguments);