Skip to content

Conversation

@ivictbor
Copy link

No description provided.

…gin to manage AI response state and output image fields
…components to improve field processing and state management
setSelected();
analyzeFields();
for (let i = 0; i < selected.value?.length; i++) {
openGenerationCarousel.value[i] = props.meta.outputImageFields?.reduce((acc,key) =>{
Copy link
Author

Choose a reason for hiding this comment

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

@yaroslav8765 something with outdent here

acc[key] = false;
return acc;
},{[primaryKey]: records.value[i][primaryKey]} as Record<string, boolean>);
}
Copy link
Author

Choose a reason for hiding this comment

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

@yaroslav8765 same here, hardread

index.ts Outdated
if (STUB_MODE) {
await new Promise((resolve) => setTimeout(resolve, 2000));
//images = `https://picsum.photos/200/300?random=${Math.floor(Math.random() * 1000)}`;
images = "https://cdn.rafled.com/anime-icons/images/6d5f85159da70f7cb29c1121248031fb4a649588a9cd71ff1784653a1f64be31.jpg";
Copy link
Author

Choose a reason for hiding this comment

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

@yaroslav8765 probably we should nto leave it in codebase?

// can generate from images or just from another fields, e.g. "remove text from images", "improve image quality", "turn image into ghibli style"
prompt: string,

adapter?: ImageGenerationAdapter,
Copy link
Author

Choose a reason for hiding this comment

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

@yaroslav8765 lets add comment here which mentions that this option is used to redefine adapter defined in imageGenerationAdapter for cases when you need to use different adapters for different fields

@ivictbor
Copy link
Author

@yaroslav8765 also please resolve conflicts

…ion URL in index.ts; enhance documentation in types.ts
Copy link
Author

@ivictbor ivictbor left a comment

Choose a reason for hiding this comment

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

Fixes

@yaroslav8765 yaroslav8765 merged commit 9acb668 into main Sep 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants