BlockAI is thrilled to announce a significant enhancement to our platform with the release of the AI Chat Feature! This new addition improves how users interact with BAI by introducing continuous, dynamic discussions.
From Simple Requests to Comprehensive Chats
Previously, BlockAI offered the Simple AI Request feature, allowing users to send one-off queries to AI models like ChatGPT 4.0, Mini Orca, Google Gemini 1.5, and Llama 3.1. However, the simplicity of this feature restricted users from engaging in an extended back-and-forth conversation. Additionally, the on-chain storage of both requests and responses, while feasible on low-fee networks like Waves or Base, posed challenges for broader blockchain compatibility due to transaction fees and data size constraints on some chains like Solana.
Enhancing with Decentralized Storage
To overcome these limitations and enable the chat functionality, BlockAI has integrated the InterPlanetary File System (IPFS). By leveraging IPFS, we ensure that only the small Content Identifier (CID) for chat data is stored on-chain, while the actual chat history is securely stored in a decentralized manner. This approach significantly reduces on-chain data costs and ensures scalability across different blockchain networks.
With this architectural change, we can now provide fully dynamic discussions while reducing storage costs and transaction fees. This feature is currently available in the testing phase on the Waves network at waves.blockai.dev and will soon be extended to other networks. Once fully deployed, it will replace the AI Simple Requests functionality.
Callback Support for Smart Contracts
Any smart contract on any supported chain can now request BAI tasks on-chain using a dapp-to-dapp call and receive the IPFS CID containing the result in return. This response is delivered via the provided callback once our off-chain agent processes the request.
Here’s a preview of the flexibility this dapp-to-dapp feature offers:
- A Smart Contract request a task on the main BAI Contract:
registerTaskCallback("Create a random lore about a dwarf name Eliott for an heroic fantasy game.", "chatgpt", "result")
- The response is delivered directly to the requesting dapp using the provided callback (here “result”):
result("QmcVGWjXVLqpQ4woecuF3HCsX56c2Dk4CaqdUscH4TEJf1")
You can then access the data through our IPFS Gateway, such as:
https://bai.infura-ipfs.io/ipfs/QmcVGWjXVLqpQ4woecuF3HCsX56c2Dk4CaqdUscH4TEJf1
or any other IPFS gateway of your choice.
What’s Next?
BlockAI is constantly evolving, and this new feature is just one step toward our broader vision of democratized, scalable, and blockchain-compatible AI tools. Stay tuned for our upcoming release focusing on QoC Features, read more about it.
Experience the next level of AI interaction with BlockAI Chat. For more updates and innovations, visit our website or follow us on Twitter.
BlockAI Team
BlockAI Website | Twitter | Telegram | Reddit | Linkedin