| | |
| | | dify_data = get_data_from_dify_v2([]) |
| | | if dify_data: |
| | | update_ids_in_local_v2(dify_data, "4") |
| | | print("Agents synchronized successfully") |
| | | print("v2 Agents synchronized successfully") |
| | | except Exception as e: |
| | | print(f"Failed to sync agents: {str(e)}") |
| | | print(f"v2 Failed to sync agents: {str(e)}") |
| | | |
| | | def update_ids_in_local_knowledge(data, klg_type): |
| | | type_dict = {"1": RAGFLOW, "2": BISHENG, "4": DIFY} |
| | |
| | | # elif app["id"] == DIFY: |
| | | # dify_data = get_data_from_dify_v2([]) |
| | | # update_ids_in_local_v2(dify_data, "4") |
| | | print("Agents synchronized successfully") |
| | | print("sync knowledge successfully") |
| | | except Exception as e: |
| | | print(f"Failed to sync agents: {str(e)}") |
| | | print(f"Failed to sync knowledge: {str(e)}") |
| | | |
| | | |
| | | if __name__ == "__main__": |