@@ -37,7 +37,6 @@ class llm_task {
3737
3838public:
3939 std::string response_format_;
40- std::vector<std::string> inputs_;
4140 task_callback_t out_callback_;
4241 bool enoutput_;
4342 bool enstream_;
@@ -95,19 +94,10 @@ class llm_task {
9594 try {
9695 response_format_ = config_body.at (" response_format" );
9796 enoutput_ = config_body.at (" enoutput" );
98- devname_ = config_body.at (" devname " );
97+ devname_ = config_body.at (" input " );
9998 frame_width_ = config_body.at (" frame_width" );
10099 frame_height_ = config_body.at (" frame_height" );
101100
102- if (config_body.contains (" input" )) {
103- if (config_body[" input" ].is_string ()) {
104- inputs_.push_back (config_body[" input" ].get <std::string>());
105- } else if (config_body[" input" ].is_array ()) {
106- for (auto _in : config_body[" input" ]) {
107- inputs_.push_back (_in.get <std::string>());
108- }
109- }
110- }
111101 } catch (...) {
112102 return true ;
113103 }
@@ -263,7 +253,9 @@ class llm_camera : public StackFlow {
263253 auto llm_task_obj = llm_task_[work_id_num];
264254 req_body[" response_format" ] = llm_task_obj->response_format_ ;
265255 req_body[" enoutput" ] = llm_task_obj->enoutput_ ;
266- req_body[" inputs" ] = llm_task_obj->inputs_ ;
256+ req_body[" input" ] = llm_task_obj->devname_ ;
257+ req_body[" frame_width" ] = llm_task_obj->frame_width_ ;
258+ req_body[" frame_height" ] = llm_task_obj->frame_height_ ;
267259 send (" camera.taskinfo" , req_body, LLM_NO_ERROR, work_id);
268260 }
269261 }
0 commit comments