@@ -84,7 +84,7 @@ func init() {
8484 if ! stor .NoAgent () && chat .AC .AgentAPI != "" && chat .AC .AgentModelName != "" && chat .AC .Key != "" {
8585 logrus .Debugln ("[aichat] enter agent mode" )
8686 x := deepinfra .NewAPI (chat .AC .AgentAPI , string (chat .AC .AgentKey ))
87- mod , err := chat .AC .Type .Protocol (chat .AC .AgentModelName , temperature , topp , maxn )
87+ mod , err := chat .AC .Type .Protocol (chat .AC .AgentModelName , temperature , topp , maxn , chat . AC . ReasoningEffort )
8888 if err != nil {
8989 logrus .Warnln ("ERROR: " , err )
9090 return
@@ -103,7 +103,7 @@ func init() {
103103 ag := chat .AgentOf (ctx .Event .SelfID , c .Service )
104104 logrus .Debugln ("[aichat] got agent" )
105105 if chat .AC .ImageAPI != "" && ! ag .CanViewImage () {
106- mod , err := chat .AC .ImageType .Protocol (chat .AC .ImageModelName , temperature , topp , maxn )
106+ mod , err := chat .AC .ImageType .Protocol (chat .AC .ImageModelName , temperature , topp , maxn , chat . AC . ReasoningEffort )
107107 if err != nil {
108108 logrus .Warnln ("ERROR: " , err )
109109 return
@@ -147,7 +147,7 @@ func init() {
147147 }
148148
149149 x := deepinfra .NewAPI (chat .AC .API , string (chat .AC .Key ))
150- mod , err := chat .AC .Type .Protocol (chat .AC .ModelName , temperature , topp , maxn )
150+ mod , err := chat .AC .Type .Protocol (chat .AC .ModelName , temperature , topp , maxn , chat . AC . ReasoningEffort )
151151 if err != nil {
152152 logrus .Warnln ("ERROR: " , err )
153153 return
0 commit comments