diff --git a/README.md b/README.md index efbd363..bc8570a 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,7 @@ Transformers allow you to modify the request and response payloads to ensure com **Available Built-in Transformers:** +- `Anthropic`:If you use only the `Anthropic` transformer, it will preserve the original request and response parameters(you can use it to connect directly to an Anthropic endpoint). - `deepseek`: Adapts requests/responses for DeepSeek API. - `gemini`: Adapts requests/responses for Gemini API. - `openrouter`: Adapts requests/responses for OpenRouter API. @@ -423,13 +424,8 @@ If you find this project helpful, please consider sponsoring its development. Yo A huge thank you to all our sponsors for their generous support! - - - - -
aihubmix
- +- [AIHubmix](https://aihubmix.com/) - @Simon Leischnig - [@duanshuaimin](https://github.com/duanshuaimin) - [@vrgitadmin](https://github.com/vrgitadmin) @@ -470,6 +466,9 @@ A huge thank you to all our sponsors for their generous support! - @*鑫 - @c\*y - @\*昕 +- [@witsice](https://github.com/witsice) +- @b\*g +- @\*亿 (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 a6aeea6..600299e 100644 --- a/README_zh.md +++ b/README_zh.md @@ -252,6 +252,7 @@ Transformers 允许您修改请求和响应负载,以确保与不同提供商 **可用的内置 Transformer:** +- `Anthropic`: 如果你只使用这一个转换器,则会直接透传请求和响应(你可以用它来接入其他支持Anthropic端点的服务商)。 - `deepseek`: 适配 DeepSeek API 的请求/响应。 - `gemini`: 适配 Gemini API 的请求/响应。 - `openrouter`: 适配 OpenRouter API 的请求/响应。 @@ -418,12 +419,7 @@ jobs: 非常感谢所有赞助商的慷慨支持! - - - - -
aihubmix
- +- [AIHubmix](https://aihubmix.com/) - @Simon Leischnig - [@duanshuaimin](https://github.com/duanshuaimin) - [@vrgitadmin](https://github.com/vrgitadmin) @@ -463,6 +459,9 @@ jobs: - @*鑫 - @c\*y - @\*昕 +- [@witsice](https://github.com/witsice) +- @b\*g +- @\*亿 (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。) diff --git a/blog/images/sponsors/aihubmix.png b/blog/images/sponsors/aihubmix.png deleted file mode 100644 index d13b585..0000000 Binary files a/blog/images/sponsors/aihubmix.png and /dev/null differ diff --git a/package.json b/package.json index d400361..7202f97 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "license": "MIT", "dependencies": { "@fastify/static": "^8.2.0", - "@musistudio/llms": "^1.0.16", + "@musistudio/llms": "^1.0.17", "dotenv": "^16.4.7", "json5": "^2.2.3", "openurl": "^1.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 221ac4e..c4a8e83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^8.2.0 version: 8.2.0 '@musistudio/llms': - specifier: ^1.0.16 - version: 1.0.16(ws@8.18.3)(zod@3.25.67) + specifier: ^1.0.17 + version: 1.0.17(ws@8.18.3)(zod@3.25.67) dotenv: specifier: ^16.4.7 version: 16.6.1 @@ -257,8 +257,8 @@ packages: resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==} engines: {node: '>=8'} - '@musistudio/llms@1.0.16': - resolution: {integrity: sha512-7OUGvvi4etpiptUoxtlu41t9vlP7q/F73iBKVRTE7Of3LpDKOKumAK0dCKZ12u35i2RVeSzmUEJHrMyhhY+z1Q==} + '@musistudio/llms@1.0.17': + resolution: {integrity: sha512-aoUxO3Bw3IVppQCcm1FQeJ7qXrYrbs/kHmq85qYSF7K4OCc8G6rrGtmfqbjdbMYoSveXc+toxJ2kThel1iqA0Q==} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -1102,7 +1102,7 @@ snapshots: '@lukeed/ms@2.0.2': {} - '@musistudio/llms@1.0.16(ws@8.18.3)(zod@3.25.67)': + '@musistudio/llms@1.0.17(ws@8.18.3)(zod@3.25.67)': dependencies: '@anthropic-ai/sdk': 0.54.0 '@fastify/cors': 11.0.1 diff --git a/ui/src/components/Providers.tsx b/ui/src/components/Providers.tsx index c9f4f6b..e1b18ca 100644 --- a/ui/src/components/Providers.tsx +++ b/ui/src/components/Providers.tsx @@ -427,7 +427,7 @@ export function Providers() { {hasFetchedModels[editingProviderIndex] ? ( ({ label: model, value: model }))} + options={(editingProvider.models || []).map((model: string) => ({ label: model, value: model }))} value="" onChange={() => { // 只更新输入值,不添加模型 @@ -484,7 +484,7 @@ export function Providers() { */}
- {(editingProvider.models || []).map((model, modelIndex) => ( + {(editingProvider.models || []).map((model: string, modelIndex: number) => ( {model}