Bruce MacDonald
1a636fb47a
cmd: set codex env vars on launch and handle zstd request bodies ( #14122 )
...
The Codex runner was not setting OPENAI_BASE_URL or OPENAI_API_KEY, this prevents Codex from sending requests to api.openai.com instead of the local Ollama server. This mirrors the approach used by the Claude runner.
Codex v0.98.0 sends zstd-compressed request bodies to the /v1/responses endpoint. Add decompression support in ResponsesMiddleware with an 8MB max decompressed size limit to prevent resource exhaustion.
2026-02-18 17:19:36 -08:00
Jeffrey Morgan
c01608b6a1
x/imagegen: add image edit capabilities ( #13846 )
2026-01-22 20:35:08 -08:00
Jeffrey Morgan
634c416645
Add experimental image generation fields to /api/generate ( #13753 )
...
Request fields (experimental):
- width: image width (max 4096)
- height: image height (max 4096)
- steps: denoising steps
- seed: random seed
Response fields (experimental):
- images: base64-encoded generated images
- completed: current step progress
- total: total steps
Other changes:
- Fix lifecycle bug where image models wouldn't unload (refCount issue)
- Fix "headers already written" error on Ctrl+C during streaming
- Add gin middleware for OpenAI /v1/images/generations compatibility
- Update CLI to use /api/generate with progress bar
- Add preload support in interactive mode
2026-01-17 18:27:41 -08:00
Devon Rifkin
38eac40d56
openai: tweak v1/responses to conform better ( #13736 )
...
* openai: tweak v1/responses to conform better
* openai: provide better error for image URLs
* lint
2026-01-15 15:46:36 -08:00
Devon Rifkin
1eb5e75972
openai: add v1/responses support ( #13351 )
...
Only supporting the stateless part of the API.
Doc updates to come once this is shipped.
Closes : #9659
2025-12-11 15:37:10 -08:00
nicole pardal
e0ead1adee
embeddings: base64 encoding fix ( #12715 )
2025-10-22 11:27:44 -07:00
Devon Rifkin
2c2f4deaa9
openai: refactor to split compat layer and middleware
...
This makes the core openai compat layer independent of the middleware
that adapts it to our particular gin routes
2025-10-05 14:18:56 -07:00