From 525ceaae67f4007f77875dea250515952b012c72 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 15 Mar 2023 10:34:26 +0800 Subject: [PATCH] update doc --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b0f2612..c3a1123 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ - `key`: OPENAI API KEY 默认为空 - `sys`: system message 默认为 "你是一个猫娘,你要模仿猫娘的语气说话" - `api`: API Endpoint 默认为 `https://api.openai.com/v1/chat/completions` +- `mode`: `fetch` 或 `stream` 模式,stream 模式下可以动态看到 api 返回的数据,但无法得知 token 数量,只能进行估算,在 token 数量过多时可能会裁切过多或过少历史消息 例如 `http://localhost:1234/?key=xxxx` 那么新创建的会话将会使用该默认 API