introduce separate weave-proxy service which holds the API key

This prevents opencode from having access to the `WEAVE_API_KEY` enviroment variable.
This commit is contained in:
2026-10-20 13:56:04 +02:00
parent b98130e648
commit b0e2b6eeb8
4 changed files with 20 additions and 5 deletions

View File

@@ -34,8 +34,8 @@
"weave": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://weave.redpencil.io/v1",
"apiKey": "{env:WEAVE_API_KEY}"
"baseURL": "http://weave-proxy/v1",
"apiKey": "not-needed"
},
"models": {
"kimi-K2.7-code": {