feat: add support for DouBao, Ernie, Kimi, Qwen, ZhiPu LLM providers

Introduces new provider modules for DouBao, Ernie, Kimi, Qwen, and ZhiPu, and registers them in the LLM registry. Updates documentation and .env.example to include configuration instructions for these providers. Refactors OpenAI provider to support OpenAI-compatible endpoints. Adds @ai-sdk/openai-compatible and node-fetch dependencies.
This commit is contained in:
LIlGG
2025-09-29 16:28:56 +08:00
parent ed0f9a81e1
commit c31e366af9
13 changed files with 407 additions and 13 deletions

View File

@@ -36,6 +36,7 @@
"@ai-sdk/google": "^2.0.15",
"@ai-sdk/mistral": "^2.0.15",
"@ai-sdk/openai": "^2.0.32",
"@ai-sdk/openai-compatible": "^1.0.19",
"@ai-sdk/react": "^2.0.49",
"@floating-ui/react": "^0.27.16",
"@headlessui/react": "^2.2.8",
@@ -84,6 +85,7 @@
"lodash": "^4.17.21",
"morgan": "^1.10.1",
"nanostores": "^1.0.1",
"node-fetch": "^3.3.2",
"ollama-ai-provider-v2": "^1.3.1",
"path-browserify": "^1.0.1",
"prettier": "^3.6.2",
@@ -108,8 +110,7 @@
"unist-util-visit": "^5.0.0",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0",
"zod": "^4.1.11",
"node-fetch": "^3.3.2"
"zod": "^4.1.11"
},
"devDependencies": {
"@biomejs/biome": "2.2.4",