Skip to content

Commit 03f041a

Browse files
committed
minor change
1 parent 50d1c43 commit 03f041a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,10 @@ public async Task<ChatResponseModel> SendMessage([FromRoute] string agentId,
162162
}
163163

164164
var inputMsg = new RoleDialogModel(AgentRole.User, input.Text);
165-
conv.SetConversationId(conversationId, input.States);
166-
167165
var routing = _services.GetRequiredService<IRoutingService>();
168166
routing.Context.SetMessageId(conversationId, inputMsg.MessageId);
169167

168+
conv.SetConversationId(conversationId, input.States);
170169
conv.States.SetState("channel", input.Channel)
171170
.SetState("provider", input.Provider)
172171
.SetState("model", input.Model)

0 commit comments

Comments
 (0)