mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 09:47:47 -05:00
refac
This commit is contained in:
1 parent
1aa6ba58ba
commit
6229405b4d
2 files changed
+2
-3
No files matched your search
@@ -107,7 +107,7 @@ class AppManifestForm(StrictModel):
|
||||
class AppForm(StrictModel):
|
||||
manifest: Manifest
|
||||
url: str = Field(max_length=2048)
|
||||
api_key: SecretStr = Field(min_length=32, max_length=4096)
|
||||
api_key: SecretStr = Field(min_length=1, max_length=4096)
|
||||
slug: str = Field(pattern=r'^[a-z][a-z0-9-]{0,39}$')
|
||||
granted_scopes: list[Scope]
|
||||
access_grants: list[dict] = Field(
|
||||
@@ -129,7 +129,7 @@ class AppTokenForm(StrictModel):
|
||||
|
||||
|
||||
class AppConnectionForm(StrictModel):
|
||||
api_key: SecretStr | None = Field(default=None, min_length=32, max_length=4096)
|
||||
api_key: SecretStr | None = Field(default=None, min_length=1, max_length=4096)
|
||||
|
||||
|
||||
####################
|
||||
|
||||
@@ -374,7 +374,6 @@
|
||||
class={inputClass}
|
||||
bind:value={apiKey}
|
||||
required={!app?.configured}
|
||||
minlength="32"
|
||||
maxlength="4096"
|
||||
placeholder={app?.configured ? '••••••••' : ''}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user