DashScope International AI Gateway (gateways/dashscope-intl.ts)

gitingest_Gitlawb_openclaude · src/integrations/gateways/dashscope-intl.ts · typescript · MIT
ai, infra, lang:typescript, tag:alibaba

Defines the Alibaba DashScope international AI gateway configuration for Qwen models using OpenAI compatibility. Reuse when integrating third-party LLM providers.

// Source: https://github.com/Gitlawb/openclaude | License: MIT | Copyright Anthropic PBC. All rights reserved
// Provided via justclaw.it.com; keep this notice with the code.
import { defineGateway } from '../define.js'

export default defineGateway({
  id: 'dashscope-intl',
  label: 'Alibaba Coding Plan',
  category: 'hosted',
  defaultBaseUrl: 'https://coding-intl.dashscope.aliyuncs.com/v1',
  defaultModel: 'qwen3.6-plus',
  supportsModelRouting: true,
  setup: {
    requiresAuth: true,
    authMode: 'api-key',
    credentialEnvVars: ['DASHSCOPE_API_KEY'],
  },
  transportConfig: {
    kind: 'openai-compatible',
    openaiShim: {
      supportsAuthHeaders: true,
    },
  },
  preset: {
    id: 'dashscope-intl',
    description: 'Alibaba DashScope International endpoint',
    apiKeyEnvVa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key