Commit Graph

4 Commits

Author SHA1 Message Date
X-Zero-L
8c332086ba fix: harden provider endpoint - remove broken completions mode, add validation
- Remove `completions` option (path-only change without body conversion causes 400)
- Add server-side enum validation for providerEndpoint in create/update
- Use exact path matching instead of broad `.includes()` in relay service
- Fix test endpoint to respect providerEndpoint config and /v1 dedup
- Improve /v1 dedup with null-safe baseApi access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:33:26 +08:00
X-Zero-L
0831739f4b feat: add configurable provider endpoint for codex-api accounts
Add providerEndpoint field (responses/completions/auto) to openai-responses
accounts, allowing admins to specify which API endpoint format the provider
supports. The relay service normalizes request paths based on this config:
- responses (default): routes all requests to /v1/responses
- completions: routes all requests to /v1/chat/completions
- auto: preserves the original request path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 19:48:17 +08:00
SunSeekerX
b5f24d04a3 1 2026-02-26 23:07:19 +08:00
SunSeekerX
a119cb1744 1 2026-02-09 18:13:45 +08:00