Skip to content

feat(opencode): add GMI Cloud request identifier#27614

Open
isaachuangGMICLOUD wants to merge 2 commits into
anomalyco:devfrom
GMISWE:feat/gmicloud-user-agent
Open

feat(opencode): add GMI Cloud request identifier#27614
isaachuangGMICLOUD wants to merge 2 commits into
anomalyco:devfrom
GMISWE:feat/gmicloud-user-agent

Conversation

@isaachuangGMICLOUD
Copy link
Copy Markdown

@isaachuangGMICLOUD isaachuangGMICLOUD commented May 14, 2026

Issue for this PR

Related to anomalyco/models.dev#1724

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a GMI Cloud-specific User-Agent header so GMI Cloud can identify requests coming from opencode.

The header is applied only to the gmicloud provider through the existing provider custom options path.

Header format:

User-Agent: opencode/<version> gmicloud (<platform> <release>; <arch>)

How did you verify your code works?

  • Ran a local request with gmicloud/deepseek-ai/DeepSeek-V4-Flash
  • Confirmed the request returned gmi-opencode-header-test
  • Confirmed GMI Cloud could track the request by header
  • bun turbo typecheck passed during pre-push

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:title labels May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title Add GMI Cloud request identifier doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@isaachuangGMICLOUD isaachuangGMICLOUD changed the title Add GMI Cloud request identifier feat(opencode): add GMI Cloud request identifier May 14, 2026
@github-actions github-actions Bot removed needs:title needs:compliance This means the issue will auto-close after 2 hours. labels May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant