Skip to content

Release v1.4.6

Choose a tag to compare

@thebtf thebtf released this 14 Dec 19:31
· 77 commits to main since this release
7819865

What's New

Experimental Responses API Support

  • New /v1/responses endpoint compatible with OpenAI Responses API
  • Supports both streaming (SSE) and non-streaming modes
  • Local polyfills for store and previous_response_id (upstream doesn't support them)
  • Enable with --enable-responses-api flag or CHATGPT_LOCAL_ENABLE_RESPONSES_API=true

New CLI Flags

  • --enable-responses-api - Enable the experimental Responses API
  • --responses-no-base-instructions - Forward client instructions as-is
  • --debug - Compact debug logging (model, counts, no full bodies)

Improvements

  • Centralized model configuration in config.py with AVAILABLE_MODELS
  • Dynamic model list in WebUI from central config
  • Better error logging in debug mode (shows error response body)
  • Fixed type: "message" causing 400 errors from upstream
  • Memory-bounded FIFO storage for responses and threads

Technical Changes

  • Protected reserved keys in extra_fields to prevent SSE breakage
  • Recursive sanitization of rs_* upstream references
  • Proper stream success tracking for statistics
  • Validation of BASE_INSTRUCTIONS return type

Full Changelog: v1.4.5...v1.4.6