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