Eliza enables developers to build autonomous AI agents. To make them on-chain verifiable we have integrated Galadriel’s Proof of Sentience API into Eliza framework.
GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/# Use any model supported by OpenAISMALL_GALADRIEL_MODEL= # Default: gpt-4o-miniMEDIUM_GALADRIEL_MODEL= # Default: gpt-4oLARGE_GALADRIEL_MODEL= # Default: gpt-4o# If you wish to use a fine-tuned model you will need to provide your own OpenAI API keyGALADRIEL_FINE_TUNE_API_KEY= # starting with sk-
Configure your character to use galadrielIn your character file set the modelProvider as galadriel
Copy
"modelProvider": "galadriel"
Run your agent
Get the history of all of your verified inference calls
Copy
const url = 'https://api.galadriel.com/v1/verified/chat/completions?limit=100&filter=mine';const headers = {'accept': 'application/json','Authorization': 'Bearer <GALADRIEL_API_KEY>' // Replace with your Galadriel API key};const response = await fetch(url, { method: 'GET', headers });const data = await response.json();console.log(data);
Check your inferences in the explorerYou can also see your inferences with proofs in the Galadriel explorerAnd for specific responses: https://explorer.galadriel.com/details/<hash>