feat: query-based apis

This commit is contained in:
Junyan Qin
2025-07-13 18:41:04 +08:00
parent 9f269d1614
commit 4a319b2b20
3 changed files with 59 additions and 1 deletions
+2 -1
View File
@@ -62,13 +62,14 @@ class PreProcessor(stage.PipelineStage):
if llm_model.model_entity.abilities.__contains__('func_call'):
query.use_funcs = await self.ap.tool_mgr.get_all_tools()
query.variables = {
variables = {
'session_id': f'{query.session.launcher_type.value}_{query.session.launcher_id}',
'conversation_id': conversation.uuid,
'msg_create_time': (
int(query.message_event.time) if query.message_event.time else int(datetime.datetime.now().timestamp())
),
}
query.variables.update(variables)
# Check if this model supports vision, if not, remove all images
# TODO this checking should be performed in runner, and in this stage, the image should be reserved