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