update some types

This commit is contained in:
pablodanswer 2024-09-19 17:47:13 -07:00
parent 9abde19e44
commit ba6296bc81
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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,
}),