-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext_providers.yaml.example
More file actions
66 lines (59 loc) · 1.88 KB
/
text_providers.yaml.example
File metadata and controls
66 lines (59 loc) · 1.88 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 文本生成服务配置(示例)
# 说明:
# 1) 复制为 text_providers.yaml 后使用,或直接通过 Web 设置页维护。
# 2) 模型 API Key 建议直接写在此文件(或通过设置页维护),不建议放在 .env。
# 3) active_provider 必须是 providers 中存在的名称。
active_provider: default
providers:
default:
type: openai_compatible
api_key: "your-openai-compatible-api-key"
base_url: https://api.openai.com
model: gpt-4o-mini
endpoint_type: /v1/chat/completions
temperature: 1.0
max_output_tokens: 8000
supports_images: true
# openrouter:
# type: openai_compatible
# api_key: "your-openrouter-api-key"
# base_url: https://openrouter.ai/api/v1
# model: google/gemini-2.0-flash-001
# endpoint_type: /v1/chat/completions
# temperature: 1.0
# max_output_tokens: 8000
# supports_images: true
# gemini:
# type: google_gemini
# api_key: "your-gemini-api-key"
# model: gemini-2.0-flash-exp
# temperature: 1.0
# max_output_tokens: 8000
# supports_images: true
# deepseek:
# type: openai_compatible
# api_key: "your-deepseek-api-key"
# base_url: https://api.deepseek.com
# model: deepseek-chat
# endpoint_type: /v1/chat/completions
# temperature: 1.0
# max_output_tokens: 8000
# supports_images: false
# qwen:
# type: openai_compatible
# api_key: "your-qwen-api-key"
# base_url: https://dashscope.aliyuncs.com/compatible-mode
# model: qwen-max
# endpoint_type: /v1/chat/completions
# temperature: 1.0
# max_output_tokens: 8000
# supports_images: true
# third_party:
# type: openai_compatible
# api_key: "your-third-party-api-key"
# base_url: https://your-api-endpoint.com
# model: gpt-4o
# endpoint_type: /v1/chat/completions
# temperature: 1.0
# max_output_tokens: 8000
# supports_images: true