File size: 910 Bytes
6db48b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 文本生成服务商配置
# 复制此文件为 text_providers.yaml 并填写你的配置

# 当前激活的服务商(填写下方 providers 中的名称)
active_provider: openai

# 服务商列表
providers:
  # OpenAI 官方 API
  openai:
    type: openai_compatible
    api_key: sk-xxxxxxxxxxxxxxxxxxxx
    base_url: https://api.openai.com/v1
    model: gpt-4o

  # Google Gemini(原生接口)
  gemini:
    type: google_gemini
    api_key: AIzaxxxxxxxxxxxxxxxxxxxxxxxxx
    model: gemini-2.0-flash

  # 第三方 OpenAI 兼容接口示例(如 OneAPI、New API 等)
  third_party:
    type: openai_compatible
    api_key: sk-xxxxxxxxxxxxxxxxxxxx
    base_url: https://your-api-endpoint.com
    model: gpt-4o

  # 阿里云通义千问
  qwen:
    type: openai_compatible
    api_key: sk-xxxxxxxxxxxxxxxxxxxx
    base_url: https://dashscope.aliyuncs.com/compatible-mode/v1
    model: qwen-max