add workflow 市场-Agents调度,dev
This commit is contained in:
parent
797da86088
commit
3eff6e0b1c
|
|
@ -121,7 +121,8 @@ class APIClient:
|
|||
"inputs": {},
|
||||
"query" : query,
|
||||
"response_mode": "streaming",
|
||||
"user": "admin"
|
||||
"user": "admin",
|
||||
"conversation_id":""
|
||||
})
|
||||
|
||||
try:
|
||||
|
|
@ -162,7 +163,8 @@ class APIClient:
|
|||
"inputs": {},
|
||||
"query":"",
|
||||
"response_mode": "streaming",
|
||||
"user": "admin"
|
||||
"user": "admin",
|
||||
"conversation_id":""
|
||||
}
|
||||
|
||||
# 添加其他参数
|
||||
|
|
@ -294,7 +296,7 @@ def main():
|
|||
inputs_data = {
|
||||
"urls": f"{text}"
|
||||
}
|
||||
|
||||
logger.info(f"调用call_api_with_inputs")
|
||||
result = api_client.call_api_with_inputs(inputs_data)
|
||||
|
||||
if result['success']:
|
||||
|
|
@ -306,6 +308,7 @@ def main():
|
|||
else:
|
||||
#agent
|
||||
query = text
|
||||
logger.info(f"call_api_with_query")
|
||||
result = api_client.call_api_with_query(query)
|
||||
|
||||
if result['success']:
|
||||
|
|
|
|||
Loading…
Reference in New Issue