You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goal: have eliza generate AI art on our Heurist key
in .env we have set
instructions below from docs unclear,
screenshot above is what coders on discord suggest
const result = await generateImage(
{
prompt: "A cute anime girl with big breasts and straight long black hair wearing orange T-shirt. The T-shirt has "ai16z" texts in the front. The girl is looking at the viewer",
width: 1024,
height: 1024,
numIterations: 20, // optional
guidanceScale: 3, // optional
seed: -1, // optional
modelId: "FLUX.1-dev", // optional
},
runtime,
);
//
const generateImageAction: Action = {
name: "GENERATE_IMAGE",
similes: ["CREATE_IMAGE", "MAKE_PICTURE"],
description: "Generate an AI image from text",
just need to activate the plugin in the the character file :
"plugins": ["@ai16z/plugin-solana", "@ai16z/plugin-nft-generation"],
but for it to work we need to get AWS keys and solana admin key
////
https://github.com/leonprou/eliza-starter/blob/fix/loading-plugins/src/index.ts![Image](https://github.com/user-attachments/assets/d4f326e2-46d5-437c-b590-8ccfba6898c9)
example: https://x.com/centienceio/status/1860171705207128183
goal: have eliza generate AI art on our Heurist key
in .env we have set
instructions below from docs unclear,
screenshot above is what coders on discord suggest
const result = await generateImage(
{
prompt: "A cute anime girl with big breasts and straight long black hair wearing orange T-shirt. The T-shirt has "ai16z" texts in the front. The girl is looking at the viewer",
width: 1024,
height: 1024,
numIterations: 20, // optional
guidanceScale: 3, // optional
seed: -1, // optional
modelId: "FLUX.1-dev", // optional
},
runtime,
);
//
const generateImageAction: Action = {
name: "GENERATE_IMAGE",
similes: ["CREATE_IMAGE", "MAKE_PICTURE"],
description: "Generate an AI image from text",
validate: async (runtime, message) => {
return (
!!runtime.getSetting("ANTHROPIC_API_KEY") &&
!!runtime.getSetting("TOGETHER_API_KEY")
);
},
handler: async (runtime, message, state, options, callback) => {
const images = await generateImage(
{ prompt: message.content.text },
runtime,
);
},
};
The text was updated successfully, but these errors were encountered: