zhaoqingang
2024-12-24 6000d52dd026aceb7a2fd8d23728d95649b06f72
app/task/fetch_agent.py
@@ -324,6 +324,8 @@
        print("v2 Agents synchronized successfully")
    except Exception as e:
        print(f"v2 Failed to sync agents: {str(e)}")
    finally:
        db.close()
def update_ids_in_local_knowledge(data, klg_type):
    type_dict = {"1": RAGFLOW, "2": BISHENG, "4": DIFY}
@@ -386,6 +388,8 @@
        print("sync knowledge successfully")
    except Exception as e:
        print(f"Failed to sync knowledge: {str(e)}")
    finally:
        db.close()
if __name__ == "__main__":