Changes
PR #2021 by jlec and ksylvan: Enhanced Azure AI Gateway with i18n Support and documentation
- Added configurable API version support for the Azure OpenAI backend, defaulting to
2025-04-01-previewwhile maintaining backward compatibility. - Implemented URL validation with HTTPS enforcement and a cancellable context in
SendStreamwith a 300-second timeout. - Added a 10MB response body size limit using
io.LimitReaderand improved error body truncation from 200 to 500 characters. - Added file-level documentation across all backend files and enforced lowercase error messages per Go convention.
- Fixed Bedrock
max_tokensto correctly respectopts.MaxTokenswith a fallback, and added error checks for empty message lists across all backends.