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

fix: image generation using imageSettings #1371

Merged
merged 5 commits into from
Dec 23, 2024

Conversation

proteanx
Copy link
Contributor

@proteanx proteanx commented Dec 22, 2024

Relates to:

So I started working on adding additional venice features for image generation and noticed that image settings for all models are currently completely broken. None of the imageSettings from character files which is what the docs currently say to use are actually passed to the API call. So before I submit the PR to add more venice features (I have this PR done as well) I figured I'd submit this to fix imageSettings for character files (while still retaining the ability to pass these options with js etc).

#1370

Risks

Low risk, this just provides a fix to an already tested feature.

Background

What does this PR do?

We added relevant imageSettings to our types file, created a call to pull the imageSettings in the image generation plugin and then looked for those settings when making our API call to generate an image.

What kind of change is this?

This is a bug fix, I have a feature PR ready for once this is merged.

Documentation changes needed?

No documentation changes needed as this actually just fixes what is already suggested in the docs (using imageSettings in character file for image settings)

Testing

Where should a reviewer start?

First you can test the current develop branch that the settings are not used in a character file by adding these settings (the width&height change is easiest)

image
If you're using openai make sure you use 1792x1024 (or a different supported size option other than the 1024x1024 default) as openai won't let you pick just any size (Venice lets you pick whatever size though)

Detailed testing steps

Now do the same test with this PR and you will notice your settings are passed and your image size is now using your settings.

@proteanx proteanx changed the title Fix image generation using imageSettings fix: Fix image generation using imageSettings Dec 22, 2024
@proteanx proteanx changed the title fix: Fix image generation using imageSettings fix: image generation using imageSettings Dec 23, 2024
Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

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

LGTM thanks for fixing this :)

@monilpat monilpat merged commit c735ef7 into elizaOS:develop Dec 23, 2024
2 checks passed
1to3for5vi7ate9x pushed a commit to 1to3for5vi7ate9x/eliza that referenced this pull request Jan 26, 2025
fix: image generation using imageSettings
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.

2 participants