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>
This commit is contained in:
Chenzy 2025-03-26 17:31:18 +08:00 committed by GitHub
parent cc5f4a5efa
commit 735d9dd949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 279 additions and 137 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff