Skip to content

Feat/agent prompt config#276

Open
CovD831 wants to merge 7 commits into
Narcooo:masterfrom
CovD831:feat/agent-prompt-config
Open

Feat/agent prompt config#276
CovD831 wants to merge 7 commits into
Narcooo:masterfrom
CovD831:feat/agent-prompt-config

Conversation

@CovD831

@CovD831 CovD831 commented May 17, 2026

Copy link
Copy Markdown

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor (no behavior change)
  • Docs / SKILL.md
  • Test
  • Performance

Motivation (optional)

Changes

File Change

Usage (optional)

Test plan

  • pnpm typecheck passes
  • pnpm test passes (all existing + new tests)
  • Manual verification:

Breaking changes (optional)

CovD831 added 7 commits May 17, 2026 19:01
- 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",导致自定义服务商保存的值在加载时丢失。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant