Files
ai_academy/config/builtin_models.yaml

44 lines
1.7 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# config/builtin_models.yaml — 声明式内置模型(全租户默认可见)。
#
# 2026-11-09:qwen-72b(对话,200K 上下文走默认值)+ qwen-embedding-8b(向量 4096 维)
# 作为系统初始模型,启动时 UPSERT 到 models 表(is_builtin=true、managed_by="yaml"、
# tenant_id=10000),对所有租户可见。接入参数经 ${LITELLM_*} 环境变量引用(.env 注入)。
# 每次启动重新应用;从本文件删除的条目不会自动清理数据库,需要手动处理。
# 模板与字段说明见 builtin_models.yaml.example;行为文档见 website-docs/03-features/06-models.md。
builtin_models:
- id: builtin-qwen-72b
type: KnowledgeQA
source: remote
is_default: true
name: qwen-72b
parameters:
base_url: ${LITELLM_BASE_URL}
api_key: ${LITELLM_API_KEY}
provider: generic
- id: builtin-qwen-embedding-8b
type: Embedding
source: remote
is_default: true
name: qwen-embedding-8b
parameters:
base_url: ${LITELLM_BASE_URL}
api_key: ${LITELLM_API_KEY}
provider: generic
embedding_parameters:
dimension: 4096
truncate_prompt_tokens: 0
# 2026-11-12:qwen3-reranker-4b 系统默认重排模型(LiteLLM 网关 Cohere 风格 /rerank)。
# name 必须是网关真实路由名(/v1/models 列表验证);api-qwen3-reranker-4b-local 在
# 网关不存在(Invalid model name)。接入参数复用 ${LITELLM_*}(与对话/向量同一网关)。
- id: builtin-qwen3-reranker-4b-local
type: Rerank
source: remote
is_default: true
name: qwen3-reranker-4b-local
parameters:
base_url: ${LITELLM_BASE_URL}
api_key: ${LITELLM_API_KEY}
provider: generic