Close Menu
maincoin.money
    What's Hot

    Ethereum’s ‘Top Loser’ Faces Additional $36.4M Loss as ETH Falls Below $4K

    September 26, 2025

    Bitcoin Reaches Three-Week Low; Can $22 Billion in Options Expiry Provide Relief?

    September 26, 2025

    Forward Industries Plans to Tokenize Shares on Solana Through Partnership with Superstate

    September 26, 2025
    Facebook X (Twitter) Instagram
    maincoin.money
    • Home
    • Altcoins
    • Markets
    • Bitcoin
    • Blockchain
    • DeFi
    • Ethereum
    • NFTs
      • Regulation
    Facebook X (Twitter) Instagram
    maincoin.money
    Home»Blockchain»Integrating LLMs with the Internet Computer
    Blockchain

    Integrating LLMs with the Internet Computer

    Ethan CarterBy Ethan CarterAugust 20, 2025No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Bringing LLMs to the Internet Computer
    Share
    Facebook Twitter LinkedIn Pinterest Email



    The Ignition milestone has been successfully achieved. This enables large language models (LLMs) to be utilized within the Internet Computer, allowing integration into canister smart contracts with just a few lines of code.

    What Is the Ignition Milestone?

    The Ignition milestone is a key component of the Decentralized AI segment of the ICP Roadmap, dedicated to linking canisters with off-chain LLMs. This advancement allows developers to incorporate AI capabilities into their dapps without complex configurations, facilitated by AI workers.

    What’s New in Ignition

    LLM Libraries for Streamlined Integration

    To enhance the connection of canisters to LLMs, we have introduced libraries in three programming languages prevalent on the Internet Computer: Motoko, Rust, and TypeScript.

    These libraries significantly speed up the process of integrating LLMs into your dapps. For instance, here’s a basic example of how a canister can interact with Llama 3.1 using a few lines of Motoko code:

    import LLM “mo:llm”;

    await LLM.chat(#Llama3_1_8B).withMessages([
    #system_ {
    content = “You are a helpful assistant.”;
    },
    #user_ {
    content = “How big is the sun?”;
    },
    ]).send();

    This example is available for exploration on ICP Ninja, demonstrating how a canister can submit a query to an LLM and receive a response with minimal setup.

    Here’s another example demonstrating how to call LLMs with tools:

    import LLM “mo:llm”;

    actor {
    public func example() {
    let response = await LLM.chat(#Llama3_1_8B)
    .withMessages([
    #system_ {
    content = “You are a helpful assistant.”
    },
    #user {
    content = “What’s the weather in Zurich?”
    },
    ])
    .withTools([LLM.tool(“get_weather”)
    .withDescription(“Get current weather for a location”)
    .withParameter(
    LLM.parameter(“location”, #String)
    .withDescription(“The location to get weather for”)
    .isRequired()
    )
    .build()
    ])
    .send();
    };
    }

    You can view a live demonstration of the tool usage here, along with the source code of the demo here.

    AI Workers

    To link canisters with off-chain LLMs, we created a minimum viable product of AI workers, a streamlined system allowing canisters to fetch data from off-chain LLMs. AI workers manage communication, enabling canisters to send requests and receive responses from LLMs in real-time.

    Currently, AI workers are compatible with Llama 3.1 8B, Llama 4 Scout, and Qwen 3 32B, granting developers the flexibility to choose the most suitable LLM for their projects.

    Below is a diagram illustrating how AI workers operate to relay prompts to off-chain LLM providers.

    How it works:

    1. Canisters send prompts to an “LLM canister” through the aforementioned LLM libraries, specifically designed to receive LLM prompts.
    2. The LLM canister stores these prompts in a queue.
    3. AI workers continuously check the LLM canister for new prompts.
    4. AI workers execute the prompts and return the responses to the LLM canister, which in turn sends them back to the originating canister.

    Real-World Use Cases

    Developers are actively utilizing the LLM libraries to craft innovative dapps, including:

    • Wallets with chat functionalities: Incorporating conversational AI into crypto wallets for improved user experience (set to launch soon in OISY)
    • DAOs employing sentiment analysis: Utilizing LLMs to assess community sentiment and inform portfolio decisions, as seen in the Alice DAO.

    These examples illustrate how AI workers can facilitate a variety of applications on the Internet Computer.

    Why This Matters and How to Get Started

    The Ignition milestone simplifies the process for developers to incorporate LLMs into their Internet Computer projects, paving the way for new dapps, such as chatbots, analytics tools, and AI-driven DeFi applications. By merging LLMs with Internet Computer capabilities like Chain Fusion, HTTPS outcalls, and on-chain randomness, developers can create innovative and robust solutions.

    Ready to explore? Check out the LLM Chatbot project on ICP Ninja, experience the live demo, or delve into the code and examples in our repository.

    Bringing LLMs to the Internet Computer was initially published in The Internet Computer Review on Medium, where discussions about this topic are ongoing through comments and responses.

    Computer Integrating Internet LLMs
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Avatar photo
    Ethan Carter

      Ethan is a seasoned cryptocurrency writer with extensive experience contributing to leading U.S.-based blockchain and fintech publications. His work blends in-depth market analysis with accessible explanations, making complex crypto topics understandable for a broad audience. Over the years, he has covered Bitcoin, Ethereum, DeFi, NFTs, and emerging blockchain trends, always with a focus on accuracy and insight. Ethan's articles have appeared on major crypto portals, where his expertise in market trends and investment strategies has earned him a loyal readership.

      Related Posts

      Integrating AI with Blockchain Analytics: Enhancing Accessibility of Cryptocurrency Data

      September 25, 2025

      The Internet Requires an Improved Framework

      September 24, 2025

      Boundless Mainnet Debuts Aiming for Blockchain Integration at Internet Scale

      September 15, 2025
      Markets

      Ethereum’s ‘Top Loser’ Faces Additional $36.4M Loss as ETH Falls Below $4K

      By Ethan CarterSeptember 26, 20250

      Key takeaways:An Ethereum trader incurred a loss of $36.4M in a single liquidation, totaling over…

      Bitcoin

      Bitcoin Reaches Three-Week Low; Can $22 Billion in Options Expiry Provide Relief?

      By Ethan CarterSeptember 26, 20250

      Key insights: Traders have decreased bullish positions, reflecting mixed market sentiment ahead of the upcoming…

      Altcoins

      Forward Industries Plans to Tokenize Shares on Solana Through Partnership with Superstate

      By Ethan CarterSeptember 26, 20250

      Forward Industries, a Nasdaq-listed company with the largest corporate Solana treasury, aims to introduce its…

      Regulation

      How Will the SEC’s Policy Shift Impact Crypto ETF Listings?

      By Ethan CarterSeptember 26, 20250

      Last week, the US Securities and Exchange Commission approved updated listing standards for commodity-based trust shares,…

      Recent Posts
      • Ethereum’s ‘Top Loser’ Faces Additional $36.4M Loss as ETH Falls Below $4K
      • Bitcoin Reaches Three-Week Low; Can $22 Billion in Options Expiry Provide Relief?
      • Forward Industries Plans to Tokenize Shares on Solana Through Partnership with Superstate
      • How Will the SEC’s Policy Shift Impact Crypto ETF Listings?
      • How INTERPOL Disrupted Global Cryptocurrency Criminal Networks

      At MainCoin.Money, we cover everything from Bitcoin and Ethereum to the latest trends in Altcoins, DeFi, NFTs, blockchain technology, market movements, and global crypto regulations.

      Whether you’re a seasoned investor, a blockchain developer, or just curious about digital assets, our mission is to make crypto news accessible and reliable for everyone.

      Facebook X (Twitter) Instagram Pinterest YouTube
      Top Insights

      Ethereum’s ‘Top Loser’ Faces Additional $36.4M Loss as ETH Falls Below $4K

      September 26, 2025

      Bitcoin Reaches Three-Week Low; Can $22 Billion in Options Expiry Provide Relief?

      September 26, 2025

      Forward Industries Plans to Tokenize Shares on Solana Through Partnership with Superstate

      September 26, 2025
      Get Informed

      Subscribe to Updates

      Get the latest creative news from FooBar about art, design and business.

      Facebook X (Twitter) Instagram Pinterest
      • About Us
      • Contact us
      • Privacy Policy
      • Disclaimer
      • Terms and Conditions
      © 2025 maincoin.money. All rights reserved.

      Type above and press Enter to search. Press Esc to cancel.