Use the chatbot
Once the dapp is deployed, you can submit AI inference requests from the CLI.
Completion requests
Submit a prompt and get a text completion:
chr tx submit_inference_request "<id>" "<prompt>" --network testnet
Then fetch the result:
chr query fetch_inference_result id="<id>" --network testnet
Chat-style requests
Submit a conversational prompt with context:
chr tx submit_chat_inference_request "<id>" "<context>" --network testnet
Then fetch the result:
chr query fetch_inference_result id="<id>" --network testnet
Configuration notes
The dapp uses the Qwen/Qwen2.5-1.5B-Instruct model with:
- Max completion tokens: 1000
- Timeout: 600 seconds
See chromia.yml for full configuration options.