mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
update some types
This commit is contained in:
parent
9abde19e44
commit
ba6296bc81
@ -11,7 +11,7 @@ if TYPE_CHECKING:
|
||||
|
||||
class TestLLMRequest(BaseModel):
|
||||
# provider level
|
||||
exisitng_api_key: bool = False
|
||||
existing_api_key: bool = False
|
||||
provider: str
|
||||
api_key: str | None = None
|
||||
api_base: str | None = None
|
||||
|
@ -132,6 +132,10 @@ export function LLMProviderUpdateForm({
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
existing_api_key:
|
||||
llmProviderFlow == "update" &&
|
||||
values.api_key == null &&
|
||||
existingLlmProvider?.name != undefined,
|
||||
provider: llmProviderDescriptor.name,
|
||||
...values,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user