初始化 Spring AI Skills Demo 项目

- 配置使用智谱 AI (GLM-4.7) 替代 Google GenAI
- 添加 Spring Web 依赖支持 RestClient
- 创建 Java/Maven 项目的 .gitignore
- 集成 SkillsTool、ShellTools、FileSystemTools 等工具
- 包含多个定价策略相关的 AI Skills

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Sonnet 4.5 committed 2026-01-29 11:44:29 +08:00
commit 6b4a347688
18 files changed
+2209

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
spring.application.name=recursive-advisor-demo
spring.main.web-application-type=none
## 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=https://open.bigmodel.cn/api/coding/paas/v4
spring.ai.openai-sdk.chat.options.temperature=0.7
## 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