-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore: add generative_uri #210
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -71,14 +71,17 @@ export function contentFrom(meta: any, eager?: boolean): Content { | |||||||||||||
|
||||||||||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||||||||||||||
export function generativeFrom(meta: any): GenArt | undefined { | ||||||||||||||
const uri = meta.generativeUri || meta.generatorUri | ||||||||||||||
const uri = meta.generativeUri || meta.generatorUri || meta.generative_uri | ||||||||||||||
|
||||||||||||||
if (!uri) { | ||||||||||||||
return undefined | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
const hash = meta.previewHash || meta.iterationHash | ||||||||||||||
const previewParam = meta.previewParam || 'fxhash' | ||||||||||||||
const previewParam = | ||||||||||||||
meta.previewParam || | ||||||||||||||
(meta.external_url?.includes('koda') && 'koda') || | ||||||||||||||
'fxhash' | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preview param of this
is
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||||||||||||||
const capture = meta.capture | ||||||||||||||
const settings = meta.settings | ||||||||||||||
|
||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this represent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "test - genart - meadow", | ||
"description": "test [LikeMurvin](https://twitter.com/LikeMurvin) genart", | ||
"image": "ipfs://bafkreic7ii2fvo3fhe557pyozhzitkfnhgmxovaebnf3shqmjiva42erb4", | ||
"external_url": "https://koda.art", | ||
"base_uri": "https://dyndata.koda.art/v1/metadata/ahk/461", | ||
"generative_uri": "ipfs://bafybeicdv7iu5racra3vsvg2k2uvp2jxvb534h67f6lqdwidhmvzg2tjou" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will leave vitest in watch mode - not preffered as it cannot run in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vitest able to detect which one development mode or CI