fix(一言): 句子下面多挂了个「· 游戏」「· 动画」的分类,看着啰嗦——不显示分类;本机不用再配 env 就能读到一言数据集
Deploy / deploy (push) Canceled after 0s
Deploy / deploy (push) Canceled after 0s
- 出处只写「—— 谁《出处》」。接口里的分类还在,只用来判断出处要不要加书名号 - HITOKOTO_DIRECTORY 默认值改成仓库旁边的 ../sentences-bundle,.env.example 里那几行撤掉。 线上不受影响:镜像里 Dockerfile 写死了 /data/hitokoto Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7a8e05385
commit
adea781b8e
5 files changed
+10
-25
No files matched your search
@@ -34,7 +34,7 @@ siteRoutes.get("/site/online", async (c) => {
|
||||
return success(c, { count: await onlineCount() } satisfies OnlineCount)
|
||||
})
|
||||
|
||||
// 数据集读不到时的兜底(本机 dev 没挂 data/hitokoto 就会走这里)
|
||||
// 数据集读不到时的兜底(本机旁边没有 sentences-bundle 就会走这里)
|
||||
const fallbackQuotes = [
|
||||
{
|
||||
hitokoto: "程序首先是写给人读的,其次才是让机器执行。",
|
||||
|
||||
Reference in new issue
Block a user