From 75570af9672bb2eb4d7b18aa8184d8884a1e6440 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Fri, 11 Apr 2025 16:24:27 +0800 Subject: [PATCH] chore: update .gitignore and docker-compose.yml to include tiktoken_cache directory --- .gitignore | 3 ++- docker-compose.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 28106a24..6a23f89e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ logs web/dist .env one-api -.DS_Store \ No newline at end of file +.DS_Store +tiktoken_cache \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0f23cea2..483c12df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - SQL_DSN=root:123456@tcp(mysql:3306)/new-api # Point to the mysql service - REDIS_CONN_STRING=redis://redis - TZ=Asia/Shanghai + # - TIKTOKEN_CACHE_DIR=./tiktoken_cache # 如果需要使用tiktoken_cache,请取消注释 # - SESSION_SECRET=random_string # 多机部署时设置,必须修改这个随机字符串!!!!!!! # - NODE_TYPE=slave # Uncomment for slave node in multi-node deployment # - SYNC_FREQUENCY=60 # Uncomment if regular database syncing is needed