change method name
This commit is contained in:
parent
d62340732d
commit
5551561a07
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue