Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,20 @@ const CredentialsSection: React.FC<CredentialsSectionProps> = ({

const organizationHelperTxtNode =
isOrganizationTouched && !isOrganizationValid ? (
<>
<FormHelperText>
<HelperText>
<HelperTextItem variant="error" data-testid="organization-error">
{VALIDATION_MESSAGES.ORGANIZATION_REQUIRED}
</HelperTextItem>
</HelperText>
</FormHelperText>
</>
) : undefined;
<FormHelperText>
<HelperText>
<HelperTextItem variant="error" data-testid="organization-error">
{VALIDATION_MESSAGES.ORGANIZATION_REQUIRED}
</HelperTextItem>
</HelperText>
</FormHelperText>
) : (
<FormHelperText>
<HelperText>
<HelperTextItem>{HELP_TEXT.ORGANIZATION_HELP_TEXT}</HelperTextItem>
</HelperText>
</FormHelperText>
);

const organizationFormGroup = (
<ThemeAwareFormGroupWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const HELP_TEXT = {
'Enter your fine-grained Hugging Face access token. Public models can be pulled into catalog without an access token. For private/gated models, a token is recommended to ensure full metadata is displayed, otherwise only limited metadata may be available. The token must have the following permissions: read repos in your namespace, read public repos that you can access.',
ORGANIZATION:
'Enter the name of the organization (for example, meta-llama) to sync models from. Hugging Face sources are limited to 1 organization to prevent performance issues related to loading large model sets.',
ORGANIZATION_HELP_TEXT:
"Hugging Face organization's name is case-sensitive and match the organization's URL, which may differ from the displayed name. Use the organization's URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).",
YAML: 'Upload or paste a YAML string.',
} as const;

Expand Down
Loading