Skip to content

Commit 9046927

Browse files
committed
fix: optional custom header
1 parent 7fd83e0 commit 9046927

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web-app/src/routes/settings/providers/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function ModelProviders() {
3939
toast.error(t('providerAlreadyExists', { name }))
4040
return
4141
}
42-
const newProvider = {
42+
const newProvider: ProviderObject = {
4343
provider: name,
4444
active: true,
4545
models: [],

web-app/src/types/modelProviders.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type ProviderObject = {
4848
settings: ProviderSetting[]
4949
models: Model[]
5050
persist?: boolean
51-
custom_header: ProviderCustomHeader[] | null
51+
custom_header?: ProviderCustomHeader[] | null
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)