forked from niuniu/llm-intelligence
feat(phase1): OpenRouter采集器接入PostgreSQL,数据链路闭环
- 将 fetch_openrouter.go 的 summarize() 实现为 PostgreSQL upsert - 新增 -db 参数和 DATABASE_URL 环境变量支持 - 打通 models + model_prices 表的最小可运行链路 - 创建 llm_intelligence 数据库并运行 migration - 前端 Explorer 验证 T-3.2~T-3.5 全部通过 - 日报生成器正常产出 Markdown 和 latest_models.json
This commit is contained in:
5
scripts/test.sh
Executable file
5
scripts/test.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# scripts/test.sh - 执行 fetch_openrouter 单元测试
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
go test -v fetch_openrouter.go fetch_openrouter_test.go
|
||||
Reference in New Issue
Block a user