change method name

This commit is contained in:
Jicheng Lu 2025-06-20 14:57:16 -05:00
parent d62340732d
commit 5551561a07
2 changed files with 2 additions and 2 deletions

View file

@ -379,7 +379,7 @@ public class ConversationController : ControllerBase
[HttpPost("/conversation/{agentId}/{conversationId}/stream")]
public async Task StreamMessage(
public async Task SendMessageStream(
[FromRoute] string agentId,
[FromRoute] string conversationId,
[FromBody] NewMessageModel input)

View file

@ -242,7 +242,7 @@ public class ChatCompletionProvider : IChatCompletion
});
}
if (choice.FinishReason == ChatFinishReason.FunctionCall || choice.FinishReason == ChatFinishReason.ToolCalls)
if (choice.FinishReason == ChatFinishReason.ToolCalls || choice.FinishReason == ChatFinishReason.FunctionCall)
{
var meta = toolCalls.FirstOrDefault(x => !string.IsNullOrEmpty(x.FunctionName));
var functionName = meta?.FunctionName;