diff --git a/config.example.js b/config.example.js index 3494046..456ec18 100644 --- a/config.example.js +++ b/config.example.js @@ -1,8 +1,8 @@ -module.exports = { - "sessions": [ - { - "cookie": "your_cookie", - "user_agent": "user_agent" - } - ] -} +export const config = { + "sessions": [ + { + "cookie": "...", + "user_agent": "...", + } + ] +} \ No newline at end of file diff --git a/start.bat b/start.bat index 0f3e9df..d33db9c 100644 --- a/start.bat +++ b/start.bat @@ -4,5 +4,5 @@ set https_proxy= set PORT=8080 set AI_MODEL=claude_3_opus set USE_CUSTOM_MODE=false -node index +node index.mjs pause \ No newline at end of file diff --git a/usage.md b/usage.md index 1cd94bf..5f8bac7 100644 --- a/usage.md +++ b/usage.md @@ -15,7 +15,7 @@ 6. 编辑 `config.example.js` 文件,把上面的 Cookie 和 User Agent 粘贴进去,如果有多个则按如下格式填入。然后另存为把文件名改为 `config.js` ``` -module.exports = { +export const config = { "sessions": [ { "user_agent": "...",