Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ await hook.OnNotificationGenerated(inputMsg)

#region Send message
[HttpPost("/conversation/{agentId}/{conversationId}")]
public async Task<ChatResponseModel> SendMessage([FromRoute] string agentId,
public async Task<ChatResponseModel> SendMessage(
[FromRoute] string agentId,
[FromRoute] string conversationId,
[FromBody] NewMessageModel input)
{
Expand All @@ -367,8 +368,8 @@ public async Task<ChatResponseModel> SendMessage([FromRoute] string agentId,
var routing = _services.GetRequiredService<IRoutingService>();
routing.Context.SetMessageId(conversationId, inputMsg.MessageId);

conv.SetConversationId(conversationId, input.States);
SetStates(conv, input);
conv.SetConversationId(conversationId, input.States);

var response = new ChatResponseModel();

Expand Down
Loading