File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
mistralrs-core/src/engine Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl Engine {
91
91
// Verify the model's category matches the messages received.
92
92
match (
93
93
get_mut_arcmutex ! ( self . pipeline) . category ( ) ,
94
- request. messages ,
94
+ & request. messages ,
95
95
) {
96
96
(
97
97
ModelCategory :: Text | ModelCategory :: Vision { .. } ,
@@ -105,10 +105,9 @@ impl Engine {
105
105
_ => {
106
106
request
107
107
. response
108
- . send ( Response :: ValidationError ( format ! (
109
- "Received a request incompatible for this model's category ({:?})." ,
110
- get_mut_arcmutex!( self . pipeline) . category( )
111
- ) ) )
108
+ . send ( Response :: ValidationError (
109
+ "Received a request incompatible for this model's category." . into ( ) ,
110
+ ) )
112
111
. await
113
112
. expect ( "Expected receiver." ) ;
114
113
return ;
You can’t perform that action at this time.
0 commit comments