diff --git a/README.md b/README.md index 4ebeeea..27e2499 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,11 @@ Transformers allow you to modify the request and response payloads to ensure com - `maxtoken`: Sets a specific `max_tokens` value. - `tooluse`: Optimizes tool usage for certain models via `tool_choice`. - `gemini-cli` (experimental): Unofficial support for Gemini via Gemini CLI [gemini-cli.js](https://gist.github.com/musistudio/1c13a65f35916a7ab690649d3df8d1cd). +- `reasoning`: Used to process the `reasoning_content` field. +- `sampling`: Used to process sampling information fields such as `temperature`, `top_p`, `top_k`, and `repetition_penalty`. +- `enhancetool`: Adds a layer of error tolerance to the tool call parameters returned by the LLM (this will cause the tool call information to no longer be streamed). +- `cleancache`: Clears the `cache_control` field from requests. +- `vertex-gemini`: Handles the Gemini API using Vertex authentication. **Custom Transformers:** @@ -440,5 +445,9 @@ A huge thank you to all our sponsors for their generous support! - [@congzhangzh](https://github.com/congzhangzh) - @\*\_ - @Z\*m +- @*鑫 +- @c\*y +- @\*昕 + (If your name is masked, please contact me via my homepage email to update it with your GitHub username.) diff --git a/README_zh.md b/README_zh.md index 8d1cdcd..0bcf38a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -245,6 +245,11 @@ Transformers 允许您修改请求和响应负载,以确保与不同提供商 - `maxtoken`: 设置特定的 `max_tokens` 值。 - `tooluse`: 优化某些模型的工具使用(通过`tool_choice`参数)。 - `gemini-cli` (实验性): 通过 Gemini CLI [gemini-cli.js](https://gist.github.com/musistudio/1c13a65f35916a7ab690649d3df8d1cd) 对 Gemini 的非官方支持。 +- `reasoning`: 用于处理 `reasoning_content` 字段。 +- `sampling`: 用于处理采样信息字段,如 `temperature`、`top_p`、`top_k` 和 `repetition_penalty`。 +- `enhancetool`: 对 LLM 返回的工具调用参数增加一层容错处理(这会导致不再流式返回工具调用信息)。 +- `cleancache`: 清除请求中的 `cache_control` 字段。 +- `vertex-gemini`: 处理使用 vertex 鉴权的 gemini api。 **自定义 Transformer:** @@ -435,6 +440,9 @@ jobs: - [@congzhangzh](https://github.com/congzhangzh) - @*_ - @Z\*m +- @*鑫 +- @c\*y +- @\*昕 (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。) diff --git a/package-lock.json b/package-lock.json index bf4f934..8c29b68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@fastify/static": "^8.2.0", - "@musistudio/llms": "file:../llms", + "@musistudio/llms": "^1.0.16", "dotenv": "^16.4.7", "json5": "^2.2.3", "openurl": "^1.1.1", @@ -30,7 +30,7 @@ }, "../llms": { "name": "@musistudio/llms", - "version": "1.0.15", + "version": "1.0.16", "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "^0.54.0", @@ -40,6 +40,7 @@ "fastify": "^5.4.0", "google-auth-library": "^10.1.0", "json5": "^2.2.3", + "jsonrepair": "^3.13.0", "openai": "^5.6.0", "undici": "^7.10.0", "uuid": "^11.1.0"