Skip to content

fix(runtime): scope OpenAI image proxy capability - #463

Merged
Yevanchen merged 1 commit into
mainfrom
fix/runtime-openai-image-capability
Jul 30, 2026
Merged

fix(runtime): scope OpenAI image proxy capability#463
Yevanchen merged 1 commit into
mainfrom
fix/runtime-openai-image-capability

Conversation

@Yevanchen

Copy link
Copy Markdown
Collaborator

Summary

  • grant official OpenAI runtime sessions a scoped gpt-image-2 capability
  • admit only POST /images/generations and /images/edits
  • require the granted model in JSON and multipart bodies before forwarding

Root cause

The runtime proxy grant covered the Responses model only, so valid Image API requests were rejected with 403 before reaching OpenAI.

Verification

  • just test-file apps/api/tests/driver-llm-proxy-route.test.ts
  • just test-file apps/api/tests/runtime-vendor-env-vars.test.ts
  • just tc-package @mosoo/api
  • just check reached 1080 passing tests; one unrelated macOS /var versus /private/var path assertion failed in apps/driver/tests/acp-file-system.test.ts

No migration or deployment. Incident record: #460.

@Yevanchen
Yevanchen merged commit 7ed784e into main Jul 30, 2026
9 checks passed
@Yevanchen
Yevanchen deleted the fix/runtime-openai-image-capability branch July 30, 2026 08:52
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