mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
refac
This commit is contained in:
parent
1aa6ba58ba
commit
6229405b4d
2 changed files with 2 additions and 3 deletions
|
|
@ -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 ? '••••••••' : ''}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue