feat: Add Livepeer Image Provider #1525
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to:
Risks
Low, only effects users using the new Livepeer provider.
Background
What does this PR do?
Adds Livepeer as a model provider for image generation.
In a separate PR we will be adding the LLM generation for Livepeer provider as well, this is a clean separation with for image gen for now.
What kind of change is this?
Feature that adds functionality, non-breaking.
Documentation changes needed?
Yes, I have a commit with doc changes ready. Will push them after this PR for correct API doc links.
Testing
Where should a reviewer start?
Detailed testing steps
Install and build from scratch to ensure no build errors. There are no new packages added with Livepeer.
Add a free gateway into the .env under
LIVEPEER_GATEWAY_URL=
Here is one for testing
https://gateway.livepeer-eliza.com
Set
IMAGE_GEN=
toTRUE
in the .envAdd
"imageModelProvider": "livepeer"
to your character file.Run start your character and open up the dialog box with
pnpm start:client
Ask it to generate an image, it will show up in the
eliza/agent/generatedImages/
folderCredits
Credit to https://github.com/UD1sto/ (ElizaOS contributor) for doing most the work.