Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Tried enabling auto function calling in silent chat too
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamS-Quartech committed Jan 9, 2025
1 parent 1f76a3f commit b98b0ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapi/Plugins/Chat/ChatPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ CancellationToken cancellationToken
var chatCompletion = this._kernel.GetRequiredService<IChatCompletionService>();
var stream = await chatCompletion.GetChatMessageContentAsync(
promptView.MetaPromptTemplate,
null, // null because we currently do not use specialization data to generate suggestions.
new PromptExecutionSettings { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto() }, // null because we currently do not use specialization data to generate suggestions.
this._kernel,
cancellationToken
);
Expand Down Expand Up @@ -824,7 +824,8 @@ private async Task<AzureOpenAIPromptExecutionSettings> CreateChatRequestSettings
TopP = this._promptOptions.ResponseTopP,
FrequencyPenalty = this._promptOptions.ResponseFrequencyPenalty,
PresencePenalty = this._promptOptions.ResponsePresencePenalty,
ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions,
//ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions,
FunctionChoiceBehavior = FunctionChoiceBehavior.Auto(),
AzureChatDataSource = await this._qAzureOpenAIChatExtension.GetAzureSearchChatDataSource(
this._qSpecialization
),
Expand Down

0 comments on commit b98b0ec

Please sign in to comment.