Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 720 Bytes

wtf.md

File metadata and controls

22 lines (16 loc) · 720 Bytes

About

This example contract demonstrates how to integrates the chatgpt atom from ai molecule in order to interact with ChatGPT from an EXM smart contract.

Contract

Prerequisites

  • EXM SDK
npm i -g @execution-machine/sdk

Iteracting with the contract

Example

exm function:write $CONTRACT_ID '{"function": "ask", "q": "$BASE64URL_ENCODED_QUESTION"}' --token EXM_TOKEN_ID