mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
feat: 贯通 context_window 配置并按 token 预算裁剪对话历史
This commit is contained in:
@@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS `agent_company_llm_settings` (
|
||||
`api_key_encrypted` varchar(2000) NOT NULL COMMENT 'API Key 密文',
|
||||
`api_key_suffix` varchar(16) NOT NULL DEFAULT '' COMMENT 'Key 末几位(展示掩码)',
|
||||
`model` varchar(200) NOT NULL COMMENT '默认模型名',
|
||||
`context_window` int UNSIGNED NULL COMMENT '模型上下文窗口(token);空则 Agent 按模型名估计',
|
||||
`extra_headers_json` json NULL COMMENT '可选额外请求头',
|
||||
`create_by` bigint UNSIGNED NULL COMMENT '创建人用户ID',
|
||||
`update_by` bigint UNSIGNED NULL COMMENT '更新人用户ID',
|
||||
|
||||
Reference in New Issue
Block a user