Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove civit install source #5887

Merged
merged 9 commits into from
Mar 8, 2024
Merged

Conversation

brandonrising
Copy link
Collaborator

@brandonrising brandonrising commented Mar 7, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Have you updated all relevant documentation?

  • Yes
  • No

Description

After this change, civitAI model downloads will be treated as any other URL and no metadata will be stored. I've added a new config variable named remote_repo_api_key that will add the key as a query param named token on all remote model downloads. This is just a stop gap until we decide how we want to handle more robust management of query params/tokens/etc in our model management UI. There could be unintended consequences of passing that token to a site you didn't mean to.

Related Tickets & Documents

This PR came out of various discussions related to explicit support for CIVIT AI model imports in our codebase in the #dev-chat channel of our discord.

QA Instructions, Screenshots, Recordings

Screenshot 2024-03-07 at 11 40 41 AM

Merge Plan

This PR can be merged when approved

Added/updated tests?

  • Yes
  • No : please replace this line with details on why tests
    have not been included

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files services PRs that change app services frontend PRs that change frontend files python-tests PRs that change python tests docs PRs that change docs labels Mar 7, 2024
brandonrising and others added 7 commits March 8, 2024 13:39
A list of regex and token pairs is accepted. As a file is downloaded by the model installer, the URL is tested against the provided regex/token pairs. The token for the first matching regex is used during download, added as a bearer token.
@psychedelicious psychedelicious enabled auto-merge (rebase) March 8, 2024 02:40
@psychedelicious psychedelicious enabled auto-merge (rebase) March 8, 2024 02:45
@psychedelicious psychedelicious merged commit 4a20377 into main Mar 8, 2024
14 checks passed
@psychedelicious psychedelicious deleted the remove-civit-install-source branch March 8, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files docs PRs that change docs frontend PRs that change frontend files python PRs that change python files python-tests PRs that change python tests services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants