-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: Text2Image interface refactored #752
Conversation
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.
Thanks for working on this feel free to review comments thanks so much!
@@ -843,16 +838,18 @@ export const generateImage = async ( | |||
const imageURL = await response.json(); | |||
return { success: true, data: [imageURL] }; | |||
} else if ( | |||
// TODO: Fix LLAMACLOUD -> Together? |
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.
Might be good to either remove or add an issue # to it!
runtime.imageModelProvider === ModelProviderName.LLAMACLOUD | ||
) { | ||
const together = new Together({ apiKey: apiKey as string }); | ||
// Fix: steps 4 is for schnell; 28 is for dev. |
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.
same here
width: 1024, | ||
height: 1024, | ||
count: 1, | ||
...(options.width !== undefined ? { width: options.width || 1024 } : {}), |
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.
instead of !== undefined you probably want to do != null which checks for undefined or null
As well as address the CI linter failure and add a test plan if you can thanks ! |
Relates to: Text2Image plugin
Risks
Low
Background
Uniform interface and parameters and allow for flexible options input.
What does this PR do?
Upgrade the input parameter for sophisticated effect in ALL T2I interfaces.
What kind of change is this?
Updates
Documentation changes needed?
Testing
Where should a reviewer start?
Detailed testing steps