add workflow 招聘信息导入,dev
This commit is contained in:
parent
04c50c1562
commit
35dd569e67
|
|
@ -260,7 +260,7 @@ def main():
|
||||||
|
|
||||||
# API配置
|
# API配置
|
||||||
api_config = {
|
api_config = {
|
||||||
'url': 'http://tk-agent.idgvalue.com/v1/workflows/run',
|
'url': 'https://tk-agent.idgvalue.com/v1/workflows/run',
|
||||||
'auth_token': 'Bearer app-siNKLRExkzO9IM81P8hHuBx2'
|
'auth_token': 'Bearer app-siNKLRExkzO9IM81P8hHuBx2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -298,7 +298,7 @@ ORDER BY doc_time DESC """
|
||||||
for i, text in enumerate(list, 1):
|
for i, text in enumerate(list, 1):
|
||||||
logger.info(f"处理第 {i}/{len(list)} 个数据: {text}")
|
logger.info(f"处理第 {i}/{len(list)} 个数据: {text}")
|
||||||
|
|
||||||
if type is 'workflow':
|
if type == 'workflow':
|
||||||
# 方法1: 使用带inputs参数的调用
|
# 方法1: 使用带inputs参数的调用
|
||||||
inputs_data = {
|
inputs_data = {
|
||||||
"content": f"{text}",
|
"content": f"{text}",
|
||||||
|
|
@ -335,7 +335,7 @@ ORDER BY doc_time DESC """
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.info("调用不带inputs参数的API示例")
|
logger.info("调用不带inputs参数的API示例")
|
||||||
if type is 'workflow':
|
if type == 'workflow':
|
||||||
result2 = api_client.call_api_without_inputs()
|
result2 = api_client.call_api_without_inputs()
|
||||||
|
|
||||||
if result2['success']:
|
if result2['success']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue