浏览代码

Feat: add "tools" to llm_factories.json (#6552)

### What problem does this PR solve?



### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Chenzy <chenzy901@gmail.com>
tags/v0.18.0
Chenzy 7 个月前
父节点
当前提交
735d9dd949
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 279 次插入137 次删除
  1. 5
    0
      api/db/db_models.py
  2. 274
    137
      conf/llm_factories.json

+ 5
- 0
api/db/db_models.py 查看文件

@@ -537,6 +537,7 @@ class LLM(DataBaseModel):
max_tokens = IntegerField(default=0)

tags = CharField(max_length=255, null=False, help_text="LLM, Text Embedding, Image2Text, Chat, 32k...", index=True)
is_tools = BooleanField(null=False, help_text="support tools", default=False)
status = CharField(max_length=1, null=True, help_text="is it validate(0: wasted, 1: validate)", default="1", index=True)

def __str__(self):
@@ -878,3 +879,7 @@ def migrate_db():
migrate(migrator.add_column("user_canvas", "permission", CharField(max_length=16, null=False, help_text="me|team", default="me", index=True)))
except Exception:
pass
try:
migrate(migrator.add_column("llm", "is_tools", BooleanField(null=False, help_text="support tools", default=False)))
except Exception:
pass

+ 274
- 137
conf/llm_factories.json
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存