fix: optional custom header

This commit is contained in:
Vanalite 2025-10-03 22:05:52 +07:00
parent 7fd83e0bf8
commit 9046927bf3
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ function ModelProviders() {
toast.error(t('providerAlreadyExists', { name }))
return
}
const newProvider = {
const newProvider: ProviderObject = {
provider: name,
active: true,
models: [],

View File

@ -48,7 +48,7 @@ type ProviderObject = {
settings: ProviderSetting[]
models: Model[]
persist?: boolean
custom_header: ProviderCustomHeader[] | null
custom_header?: ProviderCustomHeader[] | null
}
/**