Files
spring-ai-skill/src/main/resources/application.properties
T
hughhuang(黄健铭)andClaude 6b602f5cd0 feat: 优化系统提示词,强调优先使用 Skill 工具
- 修改 Application.java 中的系统提示词,明确工具优先级
- 强调对于任何用户任务都应优先检查并使用匹配的 Skill
- 移除 AskUserQuestionTool 以解决启动错误
- 添加项目文档 CLAUDE.md
- 更新前端界面和交互逻辑

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-04 12:07:53 +08:00

49 lines
1.7 KiB
Properties

spring.application.name=recursive-advisor-demo
server.port=8080
## Anthropic Claude SDK
spring.ai.anthropic.api-key=${ANTHROPIC_API_KEY}
spring.ai.anthropic.chat.options.model=claude-sonnet-4-5-20250929
spring.ai.anthropic.chat.options.max-tokens=1000
## OpenAI SDK (使用智谱 AI) - 通过本地代理
spring.ai.openai-sdk.api-key=8aa2da245af34ab3b874ae6f1a1ea59b.vv3hk1jcYtRtKHZx
spring.ai.openai-sdk.chat.options.model=glm-4.7
spring.ai.openai-sdk.base-url=http://localhost:8080/api/ai-proxy
spring.ai.openai-sdk.chat.options.temperature=0.7
## AI 代理配置
ai.proxy.target-url=https://open.bigmodel.cn/api/coding/paas/v4
ai.proxy.log.enabled=true
ai.proxy.log.directory=logs/http-traffic
ai.proxy.log.max-body-size=102400
## Google GenAI SDK
spring.ai.google.genai.project-id=${GOOGLE_CLOUD_PROJECT}
# spring.ai.google.genai.location=${GOOGLE_CLOUD_LOCATION}
spring.ai.google.genai.location=global
spring.ai.google.genai.chat.options.model=gemini-3-pro-preview
## Agent Configuration
agent.skills.dirs=classpath:/.claude/skills
## Model info (Must match the configured model above)
# agent.model=claude-sonnet-4-5-20250929
# agent.model.knowledge.cutoff=2025-01-01
agent.model=glm-4-flash
agent.model.knowledge.cutoff=2025-01-01
# agent.model=gemini-3-pro-preview
# agent.model.knowledge.cutoff=Unknown
## MCP Server Configuration
# 参考文档: https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html
# 客户风险成本 MCP 服务器 (STDIO 方式)
spring.ai.mcp.client.stdio.connections.risk-cost.command=node
spring.ai.mcp.client.stdio.connections.risk-cost.args[0]=D:/workspace/spring-ai-skill/mcp-servers/risk-cost-server/index.js