cube(portal): 加 chatbot + create_issue tool
deploy articulate / build-and-deploy (push) Successful in 1m27s
deploy cube / build-and-deploy (push) Successful in 1m52s
deploy karaoke / build-and-deploy (push) Successful in 1m20s
deploy music / build-and-deploy (push) Successful in 2m29s
deploy simpleasm / build-and-deploy (push) Successful in 1m38s
deploy werewolf / build-and-deploy (push) Successful in 58s

入口页右下角浮动 chat — 走 mochi 同款 LLM gateway (gemma-4-31b-it),
单步 tool calling 实现 `create_issue` 调 gitea API 建 fam/cube issue。
LLM_API_TOKEN + GITEA_TOKEN 走 ns 内 secret `chat-credentials`
(kubectl 手工创建,不进 git);gateway URL / model / 仓库地址走 env。
8 个 cargo test 覆盖 prompt / tool schema / tool_call 解析 / 错误。
顺手 git rm --cached 之前漏掉的 tsbuildinfo(已 gitignore)。
This commit is contained in:
Fam Zheng
2026-05-14 16:46:48 +01:00
parent af697ea6d0
commit 802d5beae9
8 changed files with 716 additions and 4 deletions
+15 -1
View File
@@ -30,6 +30,20 @@ spec:
ports:
- containerPort: 8080
name: http
envFrom:
# secret `chat-credentials` (LLM_API_TOKEN + GITEA_TOKEN) 由 kubectl 手工创建,
# 不在 git manifest 里。kubectl apply -f all.yaml 不会动它。
- secretRef:
name: chat-credentials
env:
- name: LLM_GATEWAY
value: "http://3.135.65.204:8848/v1"
- name: LLM_MODEL
value: "gemma-4-31b-it"
- name: GITEA_URL
value: "https://famzheng.me/gitea"
- name: ISSUE_REPO
value: "fam/cube"
readinessProbe:
httpGet:
path: /healthz
@@ -48,7 +62,7 @@ spec:
memory: 16Mi
limits:
cpu: 200m
memory: 64Mi
memory: 128Mi
---
apiVersion: v1
kind: Service