From 2eab705ab990cc9e7c386c39f2741729a2aac0c7 Mon Sep 17 00:00:00 2001 From: karuo Date: Wed, 25 Feb 2026 12:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20=E5=8D=A1=E8=8B=A5AI=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=202026-02-25=2012:30=20|=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=9A=E8=BF=90=E8=90=A5=E4=B8=AD=E6=9E=A2=E3=80=81=E8=BF=90?= =?UTF-8?q?=E8=90=A5=E4=B8=AD=E6=9E=A2=E5=8F=82=E8=80=83=E8=B5=84=E6=96=99?= =?UTF-8?q?=E3=80=81=E8=BF=90=E8=90=A5=E4=B8=AD=E6=9E=A2=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=20|=20=E6=8E=92=E9=99=A4=20>20MB:=2013=20=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 运营中枢/scripts/karuo_ai_gateway/README.md | 13 +++++++++++++ .../参考资料/卡若AI_API接口排队与故障切换规则.md | 5 +++++ 运营中枢/工作台/gitea_push_log.md | 1 + 运营中枢/工作台/代码管理.md | 1 + 4 files changed, 20 insertions(+) diff --git a/运营中枢/scripts/karuo_ai_gateway/README.md b/运营中枢/scripts/karuo_ai_gateway/README.md index e27dfc0b..5bbdd1f7 100644 --- a/运营中枢/scripts/karuo_ai_gateway/README.md +++ b/运营中枢/scripts/karuo_ai_gateway/README.md @@ -23,6 +23,19 @@ uvicorn main:app --host 0.0.0.0 --port 8000 - `KARUO_GATEWAY_CONFIG`:网关配置路径(默认 `config/gateway.yaml`)。 - `KARUO_GATEWAY_SALT`:部门 Key 的 salt(用于 sha256 校验;不写入仓库)。 +### API Key 填写文件地址(本地) + +统一在这个文件填写(已预置 V0/Cursor 项): + +- `运营中枢/scripts/karuo_ai_gateway/.env.api_keys.local` + +填完后执行: + +```bash +cd /Users/karuo/Documents/个人/卡若AI/运营中枢/scripts/karuo_ai_gateway +cp .env.api_keys.local .env +``` + ### 接口排队与自动切换(稳定性) 网关会按顺序尝试接口队列: diff --git a/运营中枢/参考资料/卡若AI_API接口排队与故障切换规则.md b/运营中枢/参考资料/卡若AI_API接口排队与故障切换规则.md index 0c66b5e6..7c160c21 100644 --- a/运营中枢/参考资料/卡若AI_API接口排队与故障切换规则.md +++ b/运营中枢/参考资料/卡若AI_API接口排队与故障切换规则.md @@ -5,6 +5,7 @@ - 网关代码入口:`运营中枢/scripts/karuo_ai_gateway/main.py` - 网关说明文档:`运营中枢/scripts/karuo_ai_gateway/README.md` - 网关配置样例:`运营中枢/scripts/karuo_ai_gateway/config/gateway.example.yaml` +- API Key 本地填写文件:`运营中枢/scripts/karuo_ai_gateway/.env.api_keys.local` 当前支持的接口变量(不含明文密钥): @@ -47,6 +48,10 @@ export SMTP_USER="zhiqun@qq.com" export SMTP_PASS="你的QQ邮箱授权码" ``` +如需直接本地填写,优先编辑: + +`/Users/karuo/Documents/个人/卡若AI/运营中枢/scripts/karuo_ai_gateway/.env.api_keys.local` + --- ## 4. 执行逻辑(网关内置) diff --git a/运营中枢/工作台/gitea_push_log.md b/运营中枢/工作台/gitea_push_log.md index efaf2ea9..b09ab288 100644 --- a/运营中枢/工作台/gitea_push_log.md +++ b/运营中枢/工作台/gitea_push_log.md @@ -144,3 +144,4 @@ | 2026-02-25 12:09:29 | 🔄 卡若AI 同步 2026-02-25 12:09 | 更新:运营中枢、运营中枢工作台 | 排除 >20MB: 13 个 | | 2026-02-25 12:11:44 | 🔄 卡若AI 同步 2026-02-25 12:11 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | | 2026-02-25 12:13:11 | 🔄 卡若AI 同步 2026-02-25 12:13 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | +| 2026-02-25 12:27:51 | 🔄 卡若AI 同步 2026-02-25 12:27 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | diff --git a/运营中枢/工作台/代码管理.md b/运营中枢/工作台/代码管理.md index 6624c43f..dd5ecac5 100644 --- a/运营中枢/工作台/代码管理.md +++ b/运营中枢/工作台/代码管理.md @@ -147,3 +147,4 @@ | 2026-02-25 12:09:29 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-25 12:09 | 更新:运营中枢、运营中枢工作台 | 排除 >20MB: 13 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-02-25 12:11:44 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-25 12:11 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-02-25 12:13:11 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-25 12:13 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | +| 2026-02-25 12:27:51 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-25 12:27 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 13 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |