Add support to iframe chatbot (#3929)

### What problem does this PR solve?

#3909

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2024-12-09 12:38:04 +08:00
committed by GitHub
parent dcedfc5ec8
commit 3d735dca87
12 changed files with 438 additions and 280 deletions

View File

@ -934,6 +934,7 @@ class APIToken(DataBaseModel):
token = CharField(max_length=255, null=False, index=True)
dialog_id = CharField(max_length=32, null=False, index=True)
source = CharField(max_length=16, null=True, help_text="none|agent|dialog", index=True)
beta = CharField(max_length=255, null=True, index=True)
class Meta:
db_table = "api_token"
@ -1083,4 +1084,10 @@ def migrate_db():
)
except Exception:
pass
try:
migrate(
migrator.add_column("api_token", "beta", CharField(max_length=255, null=True, index=True))
)
except Exception:
pass