This example contract demonstrates how to integrates the chatgpt
atom from ai
molecule in order to interact with ChatGPT from an EXM smart contract.
- Live deployment: xRanUr-w5FdppDz0NFsp45hrXGY_mNKcYTashAiIuow
- source code: ./contract.js
- EXM SDK
npm i -g @execution-machine/sdk
- EXM API token ID: visit exm.dev
exm function:write $CONTRACT_ID '{"function": "ask", "q": "$BASE64URL_ENCODED_QUESTION"}' --token EXM_TOKEN_ID