Skip to content

Allow for HF org with different name from code platform org#110

Open
egrace479 wants to merge 11 commits into
devfrom
feat/mismatched-hf
Open

Allow for HF org with different name from code platform org#110
egrace479 wants to merge 11 commits into
devfrom
feat/mismatched-hf

Conversation

@egrace479

@egrace479 egrace479 commented Jun 11, 2026

Copy link
Copy Markdown
Member

As I was setting up a test config for a Codeberg organization, the challenge of a Hugging Face org having a different name than the code platform org became glaringly obvious. This PR fixes that by adding a HF_ORGANIZATION_NAME parameter. It also adds a config validation check on a dev run and checks that the organization name variables are lowercase. Example console output with uppercase HF org name and unsupported platform passed:

terminal error message with red x  [CONFIG ERROR] Vite failed to start due to the following configuration errors: \n 1. HF_ORGANIZATION_NAME (Imageomics) must be lowercase \n  2. PLATFORM must be one of: github \n Please fix the listed issue(s) in ./public/config.yaml and try again.

The config path is defined from a variable in the message.

As discussed in #93, adding a different data or model platform would be a much bigger project requiring community motivated use-case(s), and having HF optional would be similar. Thus, this is a simple parameter addition; the app also requires it to be filled.

@egrace479 egrace479 added enhancement New feature or request structure Refactoring or architecture, general code organization labels Jun 11, 2026
@egrace479 egrace479 requested a review from Copilot June 11, 2026 21:42

This comment was marked as outdated.

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread src/validateConfig.js
Comment thread package.json Outdated
Comment thread vite.config.js Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Comment thread vite.config.js Outdated
Comment thread vite.config.js Outdated
Comment thread src/validateConfig.js
Comment thread src/validateConfig.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request structure Refactoring or architecture, general code organization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants