import type { ConfigProvider } from "../config/provider"

/**
 * DevEco Code 模型资源定义
 * 当用户通过 DevEco Code OAuth 登录后,这些模型会注入到 provider 系统中
 */
export const DEVECO_PROVIDER_CONFIG = {
  name: "DevEco Code",
  npm: "@ai-sdk/openai-compatible",
  api: "https://cn.devecostudio.huawei.com/sse/codeGenie/maas/v2",
  env: [],
  models: {
     "glm-5": {
      name: "glm-5",
      reasoning: true,
      tool_call: true,
      limit: { context: 202752, output: 131072 },
    },
    "deepseek-v3.2": {
      name: "deepseek-v3.2",
      tool_call: true,
      limit: { context: 131072, output: 65536 },
    },
  },
} satisfies ConfigProvider.Info