[PR #11818] feat(provider): add User-Agent header for GitLab AI Gateway requests #13943

Closed
opened 2026-02-16 18:18:46 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11818

State: closed
Merged: Yes


Summary

  • Bump @gitlab/gitlab-ai-provider to 3.4.0 with aiGatewayHeaders support
  • Set User-Agent header with opencode version, provider version, and OS info for GitLab AI Gateway requests
  • Enables traffic identification on GitLab AI Gateway

Changes

The User-Agent header sent to AI Gateway will be:

opencode/{version} gitlab-ai-provider/{version} ({platform} {release}; {arch})

Example:

opencode/1.1.48 gitlab-ai-provider/3.4.0 (darwin 24.5.0; arm64)

Related

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11818 **State:** closed **Merged:** Yes --- ## Summary - Bump `@gitlab/gitlab-ai-provider` to 3.4.0 with `aiGatewayHeaders` support - Set User-Agent header with opencode version, provider version, and OS info for GitLab AI Gateway requests - Enables traffic identification on GitLab AI Gateway ## Changes The User-Agent header sent to AI Gateway will be: ``` opencode/{version} gitlab-ai-provider/{version} ({platform} {release}; {arch}) ``` Example: ``` opencode/1.1.48 gitlab-ai-provider/3.4.0 (darwin 24.5.0; arm64) ``` ## Related - gitlab-ai-provider 3.4.0: https://www.npmjs.com/package/@gitlab/gitlab-ai-provider/v/3.4.0
yindo added the pull-request label 2026-02-16 18:18:46 -05:00
yindo closed this issue 2026-02-16 18:18:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13943