Share Pack
OpenAI integration mocked for frontend development
A frontend team needed stable OpenAI responses while iterating on agent UX without burning tokens or waiting on backend fixes.
Scenario
Use this pack when you want deterministic agent responses for local development and visual QA.
What this pack includes
- OpenAI mock template download path
- Recommended APXY startup flow
- Suggested prompts for testing agent UX safely
- A fast path to switch from mocked to live traffic
Use this pack
- Install APXY and start the proxy.
- Download and import the OpenAI mock template.
- Run your app against the mocked responses until the UI is stable.
- Disable the mock and capture live traffic when you are ready to validate the real integration.
Repro command
curl -X POST https://api.openai.com/v1/chat/completions -H 'Authorization: Bearer sk-test' -d '{"model":"gpt-4.1-mini","messages":[{"role":"user","content":"Hello"}]}'