Whether the provider is reached by region, not address.
Whether enough has been typed in to ask the provider anything: its address or region where it needs one, and a key where it needs one.
The connection as typed in, to test or list the models of before it's saved. Left without a key, the server uses the saved one, if it applies.
Without the model and guardrail, which don't change the list.
Marks the first problem with the form, if any.
Whether there's none.
Get the class name to apply to the modal.
Get the content of the modal.
The providers to choose from: those the page offers, and the one the connection was saved with, so a Bedrock connection can still be changed or removed after the AWS SDK it needs is taken away.
Whether the models listed for the saved connection are this one's: it still has the provider, address and key it was saved with.
Tests the connection as it's typed in, before it's saved.
Whether the saved key will still be used: only with the provider and API URL it was saved for, as the server checks.
Get the title of the modal dialog.
The first problem with the form, checked as the server would, so the admin can fix it here, next to the field.
Adds or edits a connection on the page. Nothing is stored until the admin saves the page.