magpie-gemini-web 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/lib/backend.mjs +1 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -37,7 +37,7 @@ magpie plugin options magpie-gemini-web '{"allowTools":true,"allowImages":true}'
|
|
|
37
37
|
| `allowTools` | `false` | Allows tool calls (experimental). When off, requests with tools get a 400 |
|
|
38
38
|
| `allowImages` | `false` | Allows image input |
|
|
39
39
|
| `baseURL` | `http://127.0.0.1:8083/v1` | Default backend URL |
|
|
40
|
-
| `contextLimit` / `outputLimit` | `
|
|
40
|
+
| `contextLimit` / `outputLimit` | `1000000` / `8192` | Context and output limits reported to clients |
|
|
41
41
|
| `requestTimeoutMs` / `modelTimeoutMs` | `240000` / `10000` | Timeouts in ms for requests and for fetching the model list |
|
|
42
42
|
| `stripCitations` | `true` | Removes the citation markers Gemini adds to replies, `[cite: 1]` and `[cite_start]`, tool call arguments included. Set it to `false` while Gemini edits code that contains such text itself |
|
|
43
43
|
|
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ magpie plugin options magpie-gemini-web '{"allowTools":true,"allowImages":true}'
|
|
|
37
37
|
| `allowTools` | `false` | 允许工具调用(实验性)。关闭时带工具的请求会返回 400 |
|
|
38
38
|
| `allowImages` | `false` | 允许图片输入 |
|
|
39
39
|
| `baseURL` | `http://127.0.0.1:8083/v1` | 默认后端地址 |
|
|
40
|
-
| `contextLimit` / `outputLimit` | `
|
|
40
|
+
| `contextLimit` / `outputLimit` | `1000000` / `8192` | 向客户端声明的上下文 / 输出上限 |
|
|
41
41
|
| `requestTimeoutMs` / `modelTimeoutMs` | `240000` / `10000` | 请求 / 拉取模型列表的超时(毫秒) |
|
|
42
42
|
| `stripCitations` | `true` | 去掉 Gemini 在回复里加的引用标记 `[cite: 1]`、`[cite_start]`(包括工具调用参数)。让 Gemini 编辑本身含有这类文本的代码时,可以设为 `false` |
|
|
43
43
|
|
package/lib/backend.mjs
CHANGED
|
@@ -130,7 +130,7 @@ export function settings(options = {}) {
|
|
|
130
130
|
allowImages = options.allowImages;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
let contextLimit =
|
|
133
|
+
let contextLimit = 1000000;
|
|
134
134
|
if (options.contextLimit !== undefined) {
|
|
135
135
|
if (!Number.isInteger(options.contextLimit) || options.contextLimit <= 0) {
|
|
136
136
|
throw new Error('Invalid option contextLimit: must be a positive integer');
|