chore: 在 .env 中添加模型配置, yaml 文件使用模型配置参数
This commit is contained in:
@@ -10,9 +10,11 @@ REDIS_ADDR=127.0.0.1:16379
|
||||
# base-url 末尾可带或不带斜杠,代码会自动处理
|
||||
# OPENAI_BASE_URL=https://api.openai.com/
|
||||
# OPENAI_API_KEY=replace-me
|
||||
# OPENAI_MODEL=your-model-name
|
||||
# 中转站推荐:https://codez.zwenooo.link/register?aff=c3yW
|
||||
OPENAI_BASE_URL=https://api-s.abcd.link/
|
||||
OPENAI_API_KEY=sk-A7B5Wv41qabcdefg**********7yoCxlcU
|
||||
OPENAI_MODEL=gpt-5.5
|
||||
|
||||
# 百度搜索 MCP(SSE 模式)
|
||||
# base-uri:保留到 /mcp/ 这一层,sse-endpoint 是相对路径
|
||||
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -12,6 +12,12 @@
|
||||
*.test
|
||||
*.out
|
||||
|
||||
# Learning docs (personal study materials)
|
||||
docs/
|
||||
|
||||
# Claude Code (personal AI assistant config)
|
||||
CLAUDE.md
|
||||
|
||||
# Frontend artefacts
|
||||
frontend/.next/
|
||||
frontend/node_modules/
|
||||
|
||||
@@ -15,7 +15,7 @@ ai:
|
||||
completions-path: v1/chat/completions
|
||||
embeddings-path: v1/embeddings
|
||||
chat-model:
|
||||
model: "gpt-5.5"
|
||||
model: ${OPENAI_MODEL}
|
||||
tool-mcp-list:
|
||||
- sse:
|
||||
name: baidu-search
|
||||
|
||||
@@ -15,7 +15,7 @@ ai:
|
||||
completions-path: "v1/chat/completions"
|
||||
embeddings-path: "v1/embeddings"
|
||||
chat-model:
|
||||
model: "gpt-5.5"
|
||||
model: ${OPENAI_MODEL}
|
||||
tool-mcp-list:
|
||||
- sse:
|
||||
name: baidu-search
|
||||
|
||||
2
go.mod
2
go.mod
@@ -5,6 +5,7 @@ go 1.25.6
|
||||
require (
|
||||
github.com/cloudwego/eino v0.9.2
|
||||
github.com/gin-gonic/gin v1.12.0
|
||||
github.com/joho/godotenv v1.5.1
|
||||
github.com/redis/go-redis/v9 v9.20.0
|
||||
go.uber.org/zap v1.28.0
|
||||
google.golang.org/adk v1.4.0
|
||||
@@ -49,7 +50,6 @@ require (
|
||||
github.com/gorilla/websocket v1.5.3 // indirect
|
||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/jinzhu/now v1.1.5 // indirect
|
||||
github.com/joho/godotenv v1.5.1 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
||||
github.com/leodido/go-urn v1.4.0 // indirect
|
||||
|
||||
Reference in New Issue
Block a user