feat: refactor API key handling to shuffle keys and attempt each once

This commit is contained in:
2026-05-12 08:17:49 +00:00
parent e28c6ea5a3
commit a6df5c4f43
4 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
3. Comment 加上些許 emoji 讓資訊有點活力
4. 盡量將應用程式放在 ./app,修改 entrypoint.sh 與 Dockerfile 讓程式可以正常運行
5. 將提示詞放到 ./app/prompts 內供程式讀取
6. API Key 支援逗號分隔傳入多個,依序嘗試,失敗時自動換下一個,全部失敗則 exit 1
6. API Key 支援逗號分隔傳入多個,隨機順序各嘗試一次,全部失敗則 exit 1
# 使用說明