2026-05-31 22:21:55 +08:00
|
|
|
# To use this file, copy it to cmd/testdata/aiconfig/ and rename it to ai_config.yaml.
|
2026-04-09 10:01:23 +08:00
|
|
|
#
|
2026-05-31 22:21:55 +08:00
|
|
|
# Configuration guide:
|
|
|
|
|
# 1. name: Unique identifier for the configuration. The system uses this field for deduplication and updates.
|
|
|
|
|
# 2. provider: Model provider. Always set this to openai because the current AI API calls use the OpenAI-compatible protocol.
|
|
|
|
|
# 3. baseUrl: API service endpoint.
|
|
|
|
|
# 4. apiKey: API key.
|
|
|
|
|
# 5. modelType: Model type. Must be one of the following:
|
|
|
|
|
# - llm: Large language model for chat and reasoning.
|
|
|
|
|
# - embedding: Text embedding model for generating vector representations of text.
|
|
|
|
|
# - rerank: Ranking model for reordering search results.
|
|
|
|
|
# 6. modelName: Specific model name, as defined by the provider.
|
|
|
|
|
# 7. dimension: Vector dimension.
|
|
|
|
|
# - llm and rerank: Usually set to 0.
|
|
|
|
|
# - embedding: Number of vector dimensions. For example, OpenAI text-embedding-3-small uses 1536.
|
|
|
|
|
# 8. maxContextTokens: Maximum context tokens. Use 0 for no limit.
|
|
|
|
|
# - llm and embedding: The maximum number of input tokens supported by the model.
|
|
|
|
|
# - rerank: Usually set to 0.
|
|
|
|
|
# 9. maxOutputTokens: Maximum output tokens.
|
|
|
|
|
# - llm: The maximum number of output tokens supported by the model.
|
|
|
|
|
# - embedding and rerank: Usually set to 0.
|
|
|
|
|
# 10. timeoutMs: Request timeout in milliseconds.
|
|
|
|
|
# 11. maxRetryCount: Number of retry attempts after a failed request.
|
|
|
|
|
# 12. rpmLimit: Requests per minute limit. Use 0 for no limit.
|
|
|
|
|
# 13. tpmLimit: Tokens per minute limit. Use 0 for no limit.
|
|
|
|
|
# 15. sortNo: Sort order for prioritizing models of the same type. Lower numbers have higher priority.
|
|
|
|
|
# 16. remark: Notes describing the purpose of this configuration or any special considerations.
|
2026-04-09 10:01:23 +08:00
|
|
|
#
|
|
|
|
|
items:
|
2026-05-31 22:21:55 +08:00
|
|
|
- name: LLM
|
2026-04-09 10:01:23 +08:00
|
|
|
provider: openai
|
|
|
|
|
baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
|
apiKey: <REPLACE_WITH_REAL_KEY>
|
|
|
|
|
modelType: llm
|
|
|
|
|
modelName: qwen3.5-plus
|
|
|
|
|
dimension: 0
|
|
|
|
|
maxContextTokens: 128000
|
|
|
|
|
maxOutputTokens: 4096
|
|
|
|
|
timeoutMs: 30000
|
|
|
|
|
maxRetryCount: 1
|
|
|
|
|
rpmLimit: 0
|
|
|
|
|
tpmLimit: 0
|
|
|
|
|
sortNo: 10
|
2026-05-31 22:21:55 +08:00
|
|
|
remark: LLM
|
2026-04-09 10:01:23 +08:00
|
|
|
|
2026-05-31 22:21:55 +08:00
|
|
|
- name: embedding
|
2026-04-09 10:01:23 +08:00
|
|
|
provider: openai
|
|
|
|
|
baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
|
apiKey: <REPLACE_WITH_REAL_KEY>
|
|
|
|
|
modelType: embedding
|
2026-08-28 22:23:13 +08:00
|
|
|
modelName: qwen3.7-text-embedding
|
2026-04-09 10:01:23 +08:00
|
|
|
dimension: 1536
|
|
|
|
|
maxContextTokens: 0
|
|
|
|
|
maxOutputTokens: 0
|
|
|
|
|
timeoutMs: 30000
|
|
|
|
|
maxRetryCount: 1
|
|
|
|
|
rpmLimit: 0
|
|
|
|
|
tpmLimit: 0
|
|
|
|
|
sortNo: 20
|
2026-05-31 22:21:55 +08:00
|
|
|
remark: embedding
|
2026-04-09 10:01:23 +08:00
|
|
|
|
2026-05-31 22:21:55 +08:00
|
|
|
- name: rerank
|
2026-04-09 10:01:23 +08:00
|
|
|
provider: openai
|
2026-06-07 19:53:12 +08:00
|
|
|
baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
|
2026-04-09 10:01:23 +08:00
|
|
|
apiKey: <REPLACE_WITH_REAL_KEY>
|
|
|
|
|
modelType: rerank
|
|
|
|
|
modelName: qwen3-vl-rerank
|
|
|
|
|
dimension: 0
|
|
|
|
|
maxContextTokens: 0
|
|
|
|
|
maxOutputTokens: 0
|
|
|
|
|
timeoutMs: 30000
|
|
|
|
|
maxRetryCount: 1
|
|
|
|
|
rpmLimit: 0
|
|
|
|
|
tpmLimit: 0
|
|
|
|
|
sortNo: 30
|
2026-08-28 22:23:13 +08:00
|
|
|
remark: rerank
|