chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package models
|
||||
|
||||
// Extra-config keys honoured by Resolve. They predate the catalog and stay
|
||||
// supported so existing model rows keep working unchanged.
|
||||
const (
|
||||
// ExtraAPI forces a protocol ("openai-responses", "anthropic-messages", ...).
|
||||
ExtraAPI = "api"
|
||||
// ExtraRemoteModelName sends a different model id on the wire.
|
||||
ExtraRemoteModelName = "remote_model_name"
|
||||
// ExtraAPIVersion is the Azure api-version query parameter.
|
||||
ExtraAPIVersion = "api_version"
|
||||
// ExtraThinkingControl is the legacy thinking encoding selector written
|
||||
// by older UIs: none | enable_thinking | thinking_type | chat_template_kwargs.
|
||||
ExtraThinkingControl = "thinking_control"
|
||||
// ExtraTruncatePromptTokens is the vLLM-only server-side truncation
|
||||
// budget for rerank, opt-in per row. It is never sent unless the operator
|
||||
// set it: vendors that do not implement it reject the unknown field.
|
||||
ExtraTruncatePromptTokens = "truncate_prompt_tokens"
|
||||
// LegacyTruncatePromptTokens is the embedding truncation budget the
|
||||
// pre-catalog OpenAI-compatible client sent whenever a row left it at 0.
|
||||
LegacyTruncatePromptTokens = 511
|
||||
// ExtraScoreScale overrides the vendor rerank score scale for one row.
|
||||
// A self-hosted gateway serves whatever reranker was deployed behind it
|
||||
// and the two families disagree: BGE-class models answer a 0..1
|
||||
// probability, Qwen3-Reranker-class models an unbounded score. A vendor
|
||||
// can only state what its own documentation shows.
|
||||
ExtraScoreScale = "score_scale"
|
||||
)
|
||||
Reference in new issue
Block a user