Skip to content

feat: add BytePlus/Volcengine Ark provider support #63480

Description

@drpr

Feature request

Add support for the BytePlus/Volcengine Ark API as a new provider in OpenCode.

The Ark API is OpenAI-compatible, so it can extend openai-compatible with Volcengine-specific defaults (region, thinking budget, prompt cache key via X-Ark-Prompt-Id header).

Proposed approach

Split into focused PRs:

  1. Ark provider (packages/ai): providers/ark.ts, export, tests
  2. Catalog entries: submit BytePlus/Volcengine model data upstream to models.dev instead of bundling locally
  3. Core wiring (packages/core): aisdk-native mapping, variant handling, provider icon
  4. provider-error.ts: minor comment fix (optional, separate PR)

Note: the initial attempt (#63471) was too large and included a 1,700-line local catalog and a generic GET /models discovery plugin. Per maintainer feedback, the catalog should go upstream and the discovery plugin should be discussed separately.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions