Client Example

Raycast AI

用 Raycast Custom Providers 接入 AnyStarX。

Raycast AI 支持 Custom Providers,可连接任意 OpenAI 兼容接口。

1. 启用 Custom Providers

  1. 打开 Raycast Settings → AI
  2. 启用 Custom Providers
  3. 打开 Providers 配置目录(Reveal Providers Config)

2. 编辑 providers.yaml

创建或编辑 providers.yaml

providers:
  - id: anystarx
    name: AnyStarX
    base_url: https://anystarx.com/v1
    api_keys:
      default: YOUR_API_KEY
    models:
      - id: MODEL_ID
        name: AnyStarX Model
        context: 128000
        abilities:
          temperature:
            supported: true
          system_message:
            supported: true
          tools:
            supported: true

YOUR_API_KEY 换成 AnyStarX API Key,把 MODEL_ID 换成控制台模型 ID。可继续追加更多 models 条目。

3. 在 Raycast 中使用

保存后,打开 Raycast AI,在模型列表里选择 AnyStarX 下的模型。

常见问题

  • 模型不出现:确认 YAML 缩进正确,并重新打开 AI 面板。
  • 鉴权失败:检查 api_keys 与模型是否正确关联;部分配置会用 provider: 字段指定 key 名称。
  • 接口不兼容:Raycast 依赖 OpenAI REST 风格;优先用 Chat Completions 可用的模型做验证。

更完整的字段示例可参考 Raycast AI Custom Providers 扩展说明。

On this page