Pre-requisites
- A consumer-side proxy-router running locally with a funded wallet. See Install from source or C-Node setup.
- BasicAuth credentials. The default
adminlives in.cookie. See API auth.
TL;DR
1
Approve
Once per wallet, or when allowance is depleted.
2
Query
Per session: list models, pick a
modelId.3
Open session
Per session:
POST /blockchain/models/:id/session.4
Prompt
Send completions with the
session_id header.A. Authorize the contract
3 MOR on your behalf.
B. Query for a model
Id for the next step.
C. Open a session
https://base.blockscout.com/address/<wallet_id>.
D. Prompt
Quick-and-dirty one-liner
Sample streaming output (truncated)
proxy-router/docs/swagger.yaml.