File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Infrastructure/BotSharp.Abstraction/Conversations/Models
Plugins/BotSharp.Plugin.ChatbotUI Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- using BotSharp . Abstraction . Models ;
2-
31namespace BotSharp . Abstraction . Conversations . Models ;
42
53public class IncomingMessageModel : MessageConfig
64{
75 public string Text { get ; set ; } = string . Empty ;
8- public virtual string Channel { get ; set ; }
6+ public virtual string Channel { get ; set ; } = string . Empty ;
97}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public async Task SendMessage([FromBody] OpenAiMessageInput input)
7878 conv . SetConversationId ( input . ConversationId , input . States ) ;
7979 conv . States . SetState ( "provider" , input . Provider )
8080 . SetState ( "model" , input . Model )
81- . SetState ( "channel" , "webchat" )
81+ . SetState ( "channel" , input . Channel )
8282 . SetState ( "temperature" , input . Temperature )
8383 . SetState ( "sampling_factor" , input . SamplingFactor ) ;
8484
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public class OpenAiMessageInput : IncomingMessageModel
99{
1010 public string AgentId { get ; set ; } = string . Empty ;
1111 public string ConversationId { get ; set ; } = string . Empty ;
12+ public override string Channel { get ; set ; } = "webchat" ;
1213
1314 public List < OpenAiMessageBody > Messages { get ; set ; } = new List < OpenAiMessageBody > ( ) ;
1415
You can’t perform that action at this time.
0 commit comments