Feat/agent prompt config#276
Open
CovD831 wants to merge 7 commits into
Open
Conversation
- newapi/higress 网关服务的预设模型列表为空,添加 modelBelongsToService 白名单 - ServiceDetailPage 为网关类服务增加 Base URL 和模型名称输入框 - 保存配置时正确传递网关服务的 baseUrl,解决"未知服务商"错误 - /services/models 接口增加网关类服务的 live probe,使首页模型选择器可用 - 页面加载时自动获取已连接服务的模型列表
- 新增 Agent 配置页面,支持 17 个 Agent 的 per-model 覆盖配置 - 新增 Agent Prompt 详情页面,支持 full/append 两种 prompt 覆盖模式 - 后端新增 prompt-overrides CRUD API 和 agent default-prompt API - core 层 11 个 Agent 文件注入 promptOverride 支持(通过 AgentContext 传递) - Writer 默认 prompt 使用占位符([题材]、[平台]、[每章字数])避免歧义 - 侧边栏新增 Agent 配置入口,hash-based 路由支持
- 用户可在前端选择服务商 + 模型作为项目默认模型 - 后端 PUT /project 增加 provider 和 model 字段写入支持 - 默认模型用于市场雷达和未单独配置模型的 Agent
将项目默认模型配置改为使用 /services/config 接口直接读写原始 inkos.json, 避免 /project 接口经过 resolveEffectiveLLMConfig 处理后将 "custom:XXX" 重写为 "custom",导致自定义服务商保存的值在加载时丢失。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of change
Motivation (optional)
Changes
Usage (optional)
Test plan
pnpm typecheckpassespnpm testpasses (all existing + new tests)Breaking changes (optional)