@@ -202,7 +202,8 @@ Json::Value SwaggerController::generateOpenAPISpec() {
202202 responses[" 200" ][" description" ] = " Model details retrieved successfully" ;
203203 Json::Value& schema =
204204 responses[" 200" ][" content" ][" application/json" ][" schema" ];
205- responses[" responses" ][" 400" ][" description" ] = " Failed to get model information" ;
205+ responses[" responses" ][" 400" ][" description" ] =
206+ " Failed to get model information" ;
206207
207208 responses[" 400" ][" description" ] = " Failed to get model information" ;
208209 responses[" 400" ][" content" ][" application/json" ][" schema" ][" type" ] =
@@ -450,6 +451,8 @@ Json::Value SwaggerController::generateOpenAPISpec() {
450451 " object" ;
451452 start[" requestBody" ][" content" ][" application/json" ][" schema" ][" properties" ]
452453 [" model" ][" type" ] = " string" ;
454+ start[" requestBody" ][" content" ][" application/json" ][" schema" ][" properties" ]
455+ [" prompt_template" ][" type" ] = " string" ;
453456 start[" requestBody" ][" content" ][" application/json" ][" schema" ][" required" ] =
454457 Json::Value (Json::arrayValue);
455458 start[" requestBody" ][" content" ][" application/json" ][" schema" ][" required" ]
@@ -458,12 +461,12 @@ Json::Value SwaggerController::generateOpenAPISpec() {
458461 start[" responses" ][" 400" ][" description" ] = " Failed to start model" ;
459462
460463 // Stop Model
461- Json::Value& stop = spec[" paths" ][" /v1/models/stop" ][" post" ];
464+ Json::Value& stop = spec[" paths" ][" /v1/models/stop" ][" post" ];
462465 stop[" summary" ] = " Stop model" ;
463466 stop[" requestBody" ][" content" ][" application/json" ][" schema" ][" type" ] =
464467 " object" ;
465468 stop[" requestBody" ][" content" ][" application/json" ][" schema" ][" properties" ]
466- [" model" ][" type" ] = " string" ;
469+ [" model" ][" type" ] = " string" ;
467470 stop[" requestBody" ][" content" ][" application/json" ][" schema" ][" required" ] =
468471 Json::Value (Json::arrayValue);
469472 stop[" requestBody" ][" content" ][" application/json" ][" schema" ][" required" ]
0 commit comments