mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Support longer API key field in DB to store GCP service account keyfile
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 5.0.13 on 2025-03-23 04:42
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("database", "0086_alter_texttoimagemodelconfig_model_type"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="aimodelapi",
|
||||||
|
name="api_key",
|
||||||
|
field=models.CharField(max_length=4000),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -188,7 +188,7 @@ class Subscription(DbBaseModel):
|
|||||||
|
|
||||||
class AiModelApi(DbBaseModel):
|
class AiModelApi(DbBaseModel):
|
||||||
name = models.CharField(max_length=200)
|
name = models.CharField(max_length=200)
|
||||||
api_key = models.CharField(max_length=200)
|
api_key = models.CharField(max_length=4000)
|
||||||
api_base_url = models.URLField(max_length=200, default=None, blank=True, null=True)
|
api_base_url = models.URLField(max_length=200, default=None, blank=True, null=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user