Skip to content

feat: inference tasks + marketplace API (#100)#31

Merged
lai3d merged 1 commit into
mainfrom
feat/inference-marketplace
Mar 11, 2026
Merged

feat: inference tasks + marketplace API (#100)#31
lai3d merged 1 commit into
mainfrom
feat/inference-marketplace

Conversation

@lai3d

@lai3d lai3d commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GET /inference/tasks — Paginated task list from qfc_getInferenceTasks RPC, with stats (total, completed, pending, failed, avg exec time). Supports ?status= and ?submitter= filters.
  • GET /inference/marketplace — Models enriched with per-model usage stats: task count, success rate, avg execution time, active miner count, avg fee. Cached 30s.

Required by qfc-explorer inference marketplace UI (PR in qfc-explorer).

Test plan

  • GET /inference/tasks returns paginated results with stats
  • GET /inference/tasks?status=completed filters correctly
  • GET /inference/tasks?submitter=0x... filters by submitter
  • GET /inference/marketplace returns models with stats
  • Caching works (subsequent calls within TTL return same data)

🤖 Generated with Claude Code

- GET /inference/tasks — paginated task list with stats, filter by status/submitter
- GET /inference/marketplace — models with usage stats, miner count, success rates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lai3d lai3d merged commit 1018095 into main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant