style(ui): apply prettier to the new provider-setup modules

This commit is contained in:
derhornspieler 2026-08-23 10:35:11 -04:00
parent ff457a7c48
commit fb4065d6b1
6 changed files with 26 additions and 9 deletions

View file

@ -161,7 +161,9 @@ export default function AddProviderPanel() {
}
setSavedValues(values);
setCredentialSaved(true);
setFederationRuleId(typeof values.anthropic_federation_rule_id === "string" ? values.anthropic_federation_rule_id : "");
setFederationRuleId(
typeof values.anthropic_federation_rule_id === "string" ? values.anthropic_federation_rule_id : "",
);
queryClient.invalidateQueries({ queryKey: ["credentials"] });
toast.success(`Credential "${credentialName}" saved`);
if (values.anthropic_identity_source === ANTHROPIC_INTERNAL_ISSUER_DISCRIMINATOR) {

View file

@ -91,8 +91,8 @@ export const JwksStep: React.FC<JwksStepProps> = ({
<Alert variant="info">
<AlertTitle>Register this JWKS with Anthropic</AlertTitle>
<AlertDescription>
Register this public JWKS as the inline issuer for your federation rule in the Anthropic Console, then
paste the resulting Federation Rule ID below.
Register this public JWKS as the inline issuer for your federation rule in the Anthropic Console, then paste
the resulting Federation Rule ID below.
</AlertDescription>
</Alert>
{jwksError && (

View file

@ -83,7 +83,8 @@ export const rowsPendingCreation = (
.map((deployment) => deploymentKey(credentialName, deployment.litellm_params.model ?? "")),
);
return rows.filter(
(row) => !existingKeys.has(deploymentKey(credentialName, litellmModelForUpstreamId(litellmProvider, row.upstreamId))),
(row) =>
!existingKeys.has(deploymentKey(credentialName, litellmModelForUpstreamId(litellmProvider, row.upstreamId))),
);
};

View file

@ -42,7 +42,12 @@ const anthropicVariants: ProviderCredentialVariants = {
{
id: "wif_internal_issuer",
label: "WIF (internal issuer)",
field_keys: ["anthropic_federation_rule_id", "anthropic_organization_id", "anthropic_issuer_url", "anthropic_issuer_signing_key_ref"],
field_keys: [
"anthropic_federation_rule_id",
"anthropic_organization_id",
"anthropic_issuer_url",
"anthropic_issuer_signing_key_ref",
],
fixed_values: { anthropic_identity_source: "internal_issuer" },
},
{

View file

@ -1,7 +1,13 @@
import type { ProviderCredentialFieldMetadata, ProviderCredentialVariant, ProviderCredentialVariants } from "../networking";
import type {
ProviderCredentialFieldMetadata,
ProviderCredentialVariant,
ProviderCredentialVariants,
} from "../networking";
export const getVariant = (variants: ProviderCredentialVariants, variantId: string): ProviderCredentialVariant | undefined =>
variants.variants.find((variant) => variant.id === variantId);
export const getVariant = (
variants: ProviderCredentialVariants,
variantId: string,
): ProviderCredentialVariant | undefined => variants.variants.find((variant) => variant.id === variantId);
export const resolveVariantFieldDefs = (
variants: ProviderCredentialVariants,

View file

@ -673,7 +673,10 @@ export const modelCreateCall = async (accessToken: string, formValues: Model) =>
}
};
export const createProviderModelCall = async (accessToken: string, formValues: Model): Promise<{ model_id?: string }> => {
export const createProviderModelCall = async (
accessToken: string,
formValues: Model,
): Promise<{ model_id?: string }> => {
/**
* Same endpoint as modelCreateCall, without the per-call success toast -- used by the Add
* Provider wizard, which creates many rows at once and reports its own bulk-creation summary.