From 98c6c8c1f764f537c146be3bff39c5f71076d554 Mon Sep 17 00:00:00 2001
From: xuyonghao <898441624@qq.com>
Date: 星期四, 05 十二月 2024 14:17:57 +0800
Subject: [PATCH] 获取llm列表

---
 app/models/agent_model.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/models/agent_model.py b/app/models/agent_model.py
index cc9120e..f914cdd 100644
--- a/app/models/agent_model.py
+++ b/app/models/agent_model.py
@@ -9,6 +9,7 @@
     RAGFLOW = 1
     BISHENG = 2
     BASIC = 3
+    DIFY = 4
 
 
 class AgentModel(Base):
@@ -128,5 +129,5 @@
 
     @staticmethod
     def is_type(record_id, t):
-        record = UnifiedAgent.get_by_id(record_id)
+        record = UnifiedAgentModel.get_by_id(record_id)
         return record and record.type == t
\ No newline at end of file

--
Gitblit v1.8.0