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

handle change to Civitai metadata schema for commercial usage #5822

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

lstein
Copy link
Collaborator

@lstein lstein commented Feb 28, 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

Civitai recently changed its metadata schema so that the AllowCommercialUsage field changed from being a single valued enum to a set of enum. This compensates for the change, while allowing for backward compatibility with json blobs from previous versions.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Attempt to install any Civitai model using its URL. It should complete.

Merge Plan

Can merge when approved.

Added/updated tests?

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

[optional] Are there any post deployment tasks we need to perform?

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files PythonTests labels Feb 28, 2024
@psychedelicious psychedelicious merged commit 98a13aa into next Feb 28, 2024
7 of 8 checks passed
@psychedelicious psychedelicious deleted the bugfix/civitai-metadata-change branch February 28, 2024 05:15
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 python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants