Skip to content

fix sample agent request command and payload#141

Open
vikions wants to merge 1 commit intoOpenGradient:mainfrom
vikions:fix-sample-agent-request
Open

fix sample agent request command and payload#141
vikions wants to merge 1 commit intoOpenGradient:mainfrom
vikions:fix-sample-agent-request

Conversation

@vikions
Copy link
Copy Markdown

@vikions vikions commented Apr 21, 2026

Summary

  • update make sample to use the current /api/v2/agent/run endpoint
  • make sample-payload.json valid JSON
  • add the required captchaToken field to the sample payload
  • allow the sample command to send either a Firebase bearer token or local skip-auth headers from env vars

Why

The local sample request had drifted from the current FastAPI API shape:

  • the Makefile sample command still pointed to the old route
  • the bundled sample payload was invalid JSON
  • the payload was missing fields now expected by the current request flow

Validation

  • python -m json.tool sample-payload.json

Scope

  • does not change Python version usage in Makefile
  • does not touch broader stale test targets in this PR

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