Skip to content

Commit 9798426

Browse files
authored
Merge pull request #668 from iceljc/master
clean comments
2 parents 8c4e66a + f53f156 commit 9798426

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Plugins/BotSharp.Plugin.AzureOpenAI/Providers/Chat/ChatCompletionProvider.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,6 @@ public async Task<RoleDialogModel> GetChatCompletions(Agent agent, List<RoleDial
6767
responseMessage.FunctionName = responseMessage.FunctionName.Split('.').Last();
6868
}
6969
}
70-
//else if (reason == ChatFinishReason.ToolCalls)
71-
//{
72-
// var toolCall = value.ToolCalls.FirstOrDefault();
73-
// responseMessage = new RoleDialogModel(AgentRole.Function, text)
74-
// {
75-
// CurrentAgentId = agent.Id,
76-
// MessageId = conversations.LastOrDefault()?.MessageId ?? string.Empty,
77-
// FunctionName = toolCall?.FunctionName,
78-
// FunctionArgs = toolCall?.FunctionArguments
79-
// };
80-
//}
8170
else
8271
{
8372
responseMessage = new RoleDialogModel(AgentRole.Assistant, text)
@@ -281,13 +270,6 @@ public async Task<bool> GetChatCompletionsStreamingAsync(Agent agent, List<RoleD
281270
{
282271
if (message.Role == AgentRole.Function)
283272
{
284-
//messages.Add(new AssistantChatMessage(string.Empty)
285-
//{
286-
// FunctionCall = new ChatFunctionCall(message.FunctionName, message.FunctionArgs ?? string.Empty)
287-
//});
288-
289-
//messages.Add(new FunctionChatMessage(message.FunctionName, message.Content));
290-
291273
messages.Add(new AssistantChatMessage(new List<ChatToolCall>
292274
{
293275
ChatToolCall.CreateFunctionToolCall(message.FunctionName, message.FunctionName, BinaryData.FromString(message.FunctionArgs ?? string.Empty))

0 commit comments

Comments
 (0)