@lobehub/chat 1.45.17 → 1.46.1

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.
Files changed (51) hide show
  1. package/.env.example +4 -1
  2. package/CHANGELOG.md +51 -0
  3. package/README.ja-JP.md +3 -3
  4. package/README.md +3 -3
  5. package/README.zh-CN.md +3 -3
  6. package/changelog/v1.json +18 -0
  7. package/docs/self-hosting/advanced/knowledge-base.mdx +9 -0
  8. package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +9 -0
  9. package/locales/ar/providers.json +3 -0
  10. package/locales/bg-BG/providers.json +3 -0
  11. package/locales/de-DE/providers.json +3 -0
  12. package/locales/en-US/providers.json +3 -0
  13. package/locales/es-ES/providers.json +3 -0
  14. package/locales/fa-IR/providers.json +3 -0
  15. package/locales/fr-FR/providers.json +3 -0
  16. package/locales/it-IT/providers.json +3 -0
  17. package/locales/ja-JP/providers.json +3 -0
  18. package/locales/ko-KR/providers.json +3 -0
  19. package/locales/nl-NL/providers.json +3 -0
  20. package/locales/pl-PL/providers.json +3 -0
  21. package/locales/pt-BR/providers.json +3 -0
  22. package/locales/ru-RU/providers.json +3 -0
  23. package/locales/tr-TR/providers.json +3 -0
  24. package/locales/vi-VN/providers.json +3 -0
  25. package/locales/zh-CN/providers.json +3 -0
  26. package/locales/zh-TW/providers.json +3 -0
  27. package/package.json +2 -2
  28. package/scripts/serverLauncher/startServer.js +8 -5
  29. package/src/app/(main)/settings/provider/(detail)/[id]/index.tsx +0 -1
  30. package/src/config/aiModels/index.ts +3 -0
  31. package/src/config/aiModels/lmstudio.ts +27 -0
  32. package/src/config/knowledge.ts +2 -0
  33. package/src/config/modelProviders/index.ts +6 -3
  34. package/src/config/modelProviders/lmstudio.ts +25 -0
  35. package/src/const/settings/knowledge.ts +25 -0
  36. package/src/const/settings/llm.ts +9 -0
  37. package/src/database/schemas/ragEvals.ts +2 -2
  38. package/src/libs/agent-runtime/AgentRuntime.ts +7 -0
  39. package/src/libs/agent-runtime/bedrock/index.ts +64 -3
  40. package/src/libs/agent-runtime/lmstudio/index.test.ts +255 -0
  41. package/src/libs/agent-runtime/lmstudio/index.ts +11 -0
  42. package/src/libs/agent-runtime/ollama/index.ts +37 -1
  43. package/src/libs/agent-runtime/types/type.ts +1 -0
  44. package/src/server/globalConfig/index.ts +6 -0
  45. package/src/server/globalConfig/parseFilesConfig.test.ts +17 -0
  46. package/src/server/globalConfig/parseFilesConfig.ts +57 -0
  47. package/src/server/routers/async/file.ts +8 -8
  48. package/src/server/routers/lambda/chunk.ts +12 -16
  49. package/src/types/knowledgeBase/index.ts +8 -0
  50. package/src/types/user/settings/filesConfig.ts +9 -0
  51. package/src/types/user/settings/keyVaults.ts +1 -0
package/.env.example CHANGED
@@ -208,4 +208,7 @@ OPENAI_API_KEY=sk-xxxxxxxxx
208
208
 
209
209
  # use `openssl rand -base64 32` to generate a key for the encryption of the database
210
210
  # we use this key to encrypt the user api key
211
- # KEY_VAULTS_SECRET=xxxxx/xxxxxxxxxxxxxx=
211
+ #KEY_VAULTS_SECRET=xxxxx/xxxxxxxxxxxxxx=
212
+
213
+ # Specify the Embedding model and Reranker model(unImplemented)
214
+ # DEFAULT_FILES_CONFIG="embedding_model=openai/embedding-text-3-small,reranker_model=cohere/rerank-english-v3.0,query_mode=full_text"
package/CHANGELOG.md CHANGED
@@ -2,6 +2,57 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.46.1](https://github.com/lobehub/lobe-chat/compare/v1.46.0...v1.46.1)
6
+
7
+ <sup>Released on **2025-01-15**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add auth support for `PROXY_URL`.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add auth support for `PROXY_URL`, closes [#5304](https://github.com/lobehub/lobe-chat/issues/5304) ([eb26c79](https://github.com/lobehub/lobe-chat/commit/eb26c79))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ## [Version 1.46.0](https://github.com/lobehub/lobe-chat/compare/v1.45.17...v1.46.0)
31
+
32
+ <sup>Released on **2025-01-15**</sup>
33
+
34
+ #### ✨ Features
35
+
36
+ - **misc**: Add lm studio provider, support to customize Embedding model with env.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's improved
44
+
45
+ - **misc**: Add lm studio provider, closes [#4483](https://github.com/lobehub/lobe-chat/issues/4483) ([0ac5802](https://github.com/lobehub/lobe-chat/commit/0ac5802))
46
+ - **misc**: Support to customize Embedding model with env, closes [#5177](https://github.com/lobehub/lobe-chat/issues/5177) ([eed9357](https://github.com/lobehub/lobe-chat/commit/eed9357))
47
+
48
+ </details>
49
+
50
+ <div align="right">
51
+
52
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
53
+
54
+ </div>
55
+
5
56
  ### [Version 1.45.17](https://github.com/lobehub/lobe-chat/compare/v1.45.16...v1.45.17)
6
57
 
7
58
  <sup>Released on **2025-01-15**</sup>
package/README.ja-JP.md CHANGED
@@ -149,20 +149,20 @@ LobeChat の継続的な開発において、AI 会話サービスを提供す
149
149
  - **[Qwen](https://lobechat.com/discover/provider/qwen)**: 通義千問は、アリババクラウドが独自に開発した超大規模言語モデルであり、強力な自然言語理解と生成能力を持っています。さまざまな質問に答えたり、文章を創作したり、意見を表現したり、コードを執筆したりすることができ、さまざまな分野で活躍しています。
150
150
  - **[Wenxin](https://lobechat.com/discover/provider/wenxin)**: 企業向けのワンストップ大規模モデルと AI ネイティブアプリケーションの開発およびサービスプラットフォームで、最も包括的で使いやすい生成的人工知能モデルの開発とアプリケーション開発の全プロセスツールチェーンを提供します。
151
151
  - **[Hunyuan](https://lobechat.com/discover/provider/hunyuan)**: テンセントが開発した大規模言語モデルであり、強力な中国語の創作能力、複雑な文脈における論理的推論能力、そして信頼性の高いタスク実行能力を備えています。
152
- - **[Spark](https://lobechat.com/discover/provider/spark)**: 科大訊飛星火大モデルは、多分野、多言語の強力な AI 能力を提供し、先進的な自然言語処理技術を利用して、スマートハードウェア、スマート医療、スマート金融などのさまざまな垂直シーンに適した革新的なアプリケーションを構築します。
153
152
  - **[ZhiPu](https://lobechat.com/discover/provider/zhipu)**: 智谱 AI は、多モーダルおよび言語モデルのオープンプラットフォームを提供し、テキスト処理、画像理解、プログラミング支援など、幅広い AI アプリケーションシーンをサポートしています。
153
+ - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconFlow は、AGI を加速させ、人類に利益をもたらすことを目指し、使いやすくコスト効率の高い GenAI スタックを通じて大規模 AI の効率を向上させることに取り組んでいます。
154
154
  - **[01.AI](https://lobechat.com/discover/provider/zeroone)**: 01.AI は、AI 2.0 時代の人工知能技術に特化し、「人 + 人工知能」の革新と応用を推進し、超強力なモデルと先進的な AI 技術を用いて人類の生産性を向上させ、技術の力を実現します。
155
+ - **[Spark](https://lobechat.com/discover/provider/spark)**: 科大訊飛星火大モデルは、多分野、多言語の強力な AI 能力を提供し、先進的な自然言語処理技術を利用して、スマートハードウェア、スマート医療、スマート金融などのさまざまな垂直シーンに適した革新的なアプリケーションを構築します。
155
156
  - **[SenseNova](https://lobechat.com/discover/provider/sensenova)**: 商湯日日新は、商湯の強力な基盤支援に基づき、高効率で使いやすい全スタックの大規模モデルサービスを提供します。
156
157
  - **[Stepfun](https://lobechat.com/discover/provider/stepfun)**: 階級星辰大モデルは、業界をリードする多モーダルおよび複雑な推論能力を備え、超長文の理解と強力な自律的検索エンジン機能をサポートしています。
157
158
  - **[Moonshot](https://lobechat.com/discover/provider/moonshot)**: Moonshot は、北京月之暗面科技有限公司が提供するオープンプラットフォームであり、さまざまな自然言語処理モデルを提供し、コンテンツ創作、学術研究、スマート推薦、医療診断などの広範な応用分野を持ち、長文処理や複雑な生成タスクをサポートしています。
158
159
  - **[Baichuan](https://lobechat.com/discover/provider/baichuan)**: 百川智能は、人工知能大モデルの研究開発に特化した企業であり、そのモデルは国内の知識百科、長文処理、生成創作などの中国語タスクで卓越したパフォーマンスを示し、海外の主流モデルを超えています。百川智能は、業界をリードする多モーダル能力を持ち、複数の権威ある評価で優れたパフォーマンスを示しています。そのモデルには、Baichuan 4、Baichuan 3 Turbo、Baichuan 3 Turbo 128k などが含まれ、異なるアプリケーションシーンに最適化され、高コストパフォーマンスのソリューションを提供しています。
159
160
  - **[Minimax](https://lobechat.com/discover/provider/minimax)**: MiniMax は 2021 年に設立された汎用人工知能テクノロジー企業であり、ユーザーと共に知能を共創することに取り組んでいます。MiniMax は、さまざまなモードの汎用大モデルを独自に開発しており、トリリオンパラメータの MoE テキスト大モデル、音声大モデル、画像大モデルを含んでいます。また、海螺 AI などのアプリケーションも展開しています。
160
- - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI は、360 社が提供する AI モデルとサービスプラットフォームであり、360GPT2 Pro、360GPT Pro、360GPT Turbo、360GPT Turbo Responsibility 8K など、さまざまな先進的な自然言語処理モデルを提供しています。これらのモデルは、大規模なパラメータと多モーダル能力を組み合わせており、テキスト生成、意味理解、対話システム、コード生成などの分野で広く使用されています。柔軟な価格戦略を通じて、360 AI は多様なユーザーのニーズに応え、開発者の統合をサポートし、スマートアプリケーションの革新と発展を促進します。
161
- - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconFlow は、AGI を加速させ、人類に利益をもたらすことを目指し、使いやすくコスト効率の高い GenAI スタックを通じて大規模 AI の効率を向上させることに取り組んでいます。
162
161
  - **[InternLM](https://lobechat.com/discover/provider/internlm)**: 大規模モデルの研究と開発ツールチェーンに特化したオープンソース組織です。すべての AI 開発者に対して、高効率で使いやすいオープンプラットフォームを提供し、最先端の大規模モデルとアルゴリズム技術を身近に感じられるようにします。
163
162
  - **[Higress](https://lobechat.com/discover/provider/higress)**: Higress は、阿里内部で Tengine のリロードが長期接続のビジネスに悪影響を及ぼすことや、gRPC/Dubbo の負荷分散能力が不足している問題を解決するために生まれた、クラウドネイティブな API ゲートウェイです。
164
163
  - **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI の Serverless API は、AI 開発者に開梱即使用の大モデル推論 API サービスを提供する。
165
164
  - **[Taichu](https://lobechat.com/discover/provider/taichu)**: 中科院自動化研究所と武漢人工知能研究院が新世代の多モーダル大モデルを発表し、多輪問答、テキスト創作、画像生成、3D 理解、信号分析などの包括的な問答タスクをサポートし、より強力な認知、理解、創作能力を持ち、新しいインタラクティブな体験を提供します。
165
+ - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI は、360 社が提供する AI モデルとサービスプラットフォームであり、360GPT2 Pro、360GPT Pro、360GPT Turbo、360GPT Turbo Responsibility 8K など、さまざまな先進的な自然言語処理モデルを提供しています。これらのモデルは、大規模なパラメータと多モーダル能力を組み合わせており、テキスト生成、意味理解、対話システム、コード生成などの分野で広く使用されています。柔軟な価格戦略を通じて、360 AI は多様なユーザーのニーズに応え、開発者の統合をサポートし、スマートアプリケーションの革新と発展を促進します。
166
166
 
167
167
  </details>
168
168
 
package/README.md CHANGED
@@ -168,20 +168,20 @@ We have implemented support for the following model service providers:
168
168
  - **[Qwen](https://lobechat.com/discover/provider/qwen)**: Tongyi Qianwen is a large-scale language model independently developed by Alibaba Cloud, featuring strong natural language understanding and generation capabilities. It can answer various questions, create written content, express opinions, and write code, playing a role in multiple fields.
169
169
  - **[Wenxin](https://lobechat.com/discover/provider/wenxin)**: An enterprise-level one-stop platform for large model and AI-native application development and services, providing the most comprehensive and user-friendly toolchain for the entire process of generative artificial intelligence model development and application development.
170
170
  - **[Hunyuan](https://lobechat.com/discover/provider/hunyuan)**: A large language model developed by Tencent, equipped with powerful Chinese creative capabilities, logical reasoning abilities in complex contexts, and reliable task execution skills.
171
- - **[Spark](https://lobechat.com/discover/provider/spark)**: iFlytek's Spark model provides powerful AI capabilities across multiple domains and languages, utilizing advanced natural language processing technology to build innovative applications suitable for smart hardware, smart healthcare, smart finance, and other vertical scenarios.
172
171
  - **[ZhiPu](https://lobechat.com/discover/provider/zhipu)**: Zhipu AI offers an open platform for multimodal and language models, supporting a wide range of AI application scenarios, including text processing, image understanding, and programming assistance.
172
+ - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconFlow is dedicated to accelerating AGI for the benefit of humanity, enhancing large-scale AI efficiency through an easy-to-use and cost-effective GenAI stack.
173
173
  - **[01.AI](https://lobechat.com/discover/provider/zeroone)**: 01.AI focuses on AI 2.0 era technologies, vigorously promoting the innovation and application of 'human + artificial intelligence', using powerful models and advanced AI technologies to enhance human productivity and achieve technological empowerment.
174
+ - **[Spark](https://lobechat.com/discover/provider/spark)**: iFlytek's Spark model provides powerful AI capabilities across multiple domains and languages, utilizing advanced natural language processing technology to build innovative applications suitable for smart hardware, smart healthcare, smart finance, and other vertical scenarios.
174
175
  - **[SenseNova](https://lobechat.com/discover/provider/sensenova)**: SenseNova, backed by SenseTime's robust infrastructure, offers efficient and user-friendly full-stack large model services.
175
176
  - **[Stepfun](https://lobechat.com/discover/provider/stepfun)**: StepFun's large model possesses industry-leading multimodal and complex reasoning capabilities, supporting ultra-long text understanding and powerful autonomous scheduling search engine functions.
176
177
  - **[Moonshot](https://lobechat.com/discover/provider/moonshot)**: Moonshot is an open-source platform launched by Beijing Dark Side Technology Co., Ltd., providing various natural language processing models with a wide range of applications, including but not limited to content creation, academic research, intelligent recommendations, and medical diagnosis, supporting long text processing and complex generation tasks.
177
178
  - **[Baichuan](https://lobechat.com/discover/provider/baichuan)**: Baichuan Intelligence is a company focused on the research and development of large AI models, with its models excelling in domestic knowledge encyclopedias, long text processing, and generative creation tasks in Chinese, surpassing mainstream foreign models. Baichuan Intelligence also possesses industry-leading multimodal capabilities, performing excellently in multiple authoritative evaluations. Its models include Baichuan 4, Baichuan 3 Turbo, and Baichuan 3 Turbo 128k, each optimized for different application scenarios, providing cost-effective solutions.
178
179
  - **[Minimax](https://lobechat.com/discover/provider/minimax)**: MiniMax is a general artificial intelligence technology company established in 2021, dedicated to co-creating intelligence with users. MiniMax has independently developed general large models of different modalities, including trillion-parameter MoE text models, voice models, and image models, and has launched applications such as Conch AI.
179
- - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI is an AI model and service platform launched by 360 Company, offering various advanced natural language processing models, including 360GPT2 Pro, 360GPT Pro, 360GPT Turbo, and 360GPT Turbo Responsibility 8K. These models combine large-scale parameters and multimodal capabilities, widely applied in text generation, semantic understanding, dialogue systems, and code generation. With flexible pricing strategies, 360 AI meets diverse user needs, supports developer integration, and promotes the innovation and development of intelligent applications.
180
- - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconFlow is dedicated to accelerating AGI for the benefit of humanity, enhancing large-scale AI efficiency through an easy-to-use and cost-effective GenAI stack.
181
180
  - **[InternLM](https://lobechat.com/discover/provider/internlm)**: An open-source organization dedicated to the research and development of large model toolchains. It provides an efficient and user-friendly open-source platform for all AI developers, making cutting-edge large models and algorithm technologies easily accessible.
182
181
  - **[Higress](https://lobechat.com/discover/provider/higress)**: Higress is a cloud-native API gateway that was developed internally at Alibaba to address the issues of Tengine reload affecting long-lived connections and the insufficient load balancing capabilities for gRPC/Dubbo.
183
182
  - **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI's Serverless API provides AI developers with an out of the box large model inference API service.
184
183
  - **[Taichu](https://lobechat.com/discover/provider/taichu)**: The Institute of Automation, Chinese Academy of Sciences, and Wuhan Artificial Intelligence Research Institute have launched a new generation of multimodal large models, supporting comprehensive question-answering tasks such as multi-turn Q\&A, text creation, image generation, 3D understanding, and signal analysis, with stronger cognitive, understanding, and creative abilities, providing a new interactive experience.
184
+ - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI is an AI model and service platform launched by 360 Company, offering various advanced natural language processing models, including 360GPT2 Pro, 360GPT Pro, 360GPT Turbo, and 360GPT Turbo Responsibility 8K. These models combine large-scale parameters and multimodal capabilities, widely applied in text generation, semantic understanding, dialogue systems, and code generation. With flexible pricing strategies, 360 AI meets diverse user needs, supports developer integration, and promotes the innovation and development of intelligent applications.
185
185
 
186
186
  </details>
187
187
 
package/README.zh-CN.md CHANGED
@@ -168,20 +168,20 @@ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片
168
168
  - **[Qwen](https://lobechat.com/discover/provider/qwen)**: 通义千问是阿里云自主研发的超大规模语言模型,具有强大的自然语言理解和生成能力。它可以回答各种问题、创作文字内容、表达观点看法、撰写代码等,在多个领域发挥作用。
169
169
  - **[Wenxin](https://lobechat.com/discover/provider/wenxin)**: 企业级一站式大模型与 AI 原生应用开发及服务平台,提供最全面易用的生成式人工智能模型开发、应用开发全流程工具链
170
170
  - **[Hunyuan](https://lobechat.com/discover/provider/hunyuan)**: 由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力
171
- - **[Spark](https://lobechat.com/discover/provider/spark)**: 科大讯飞星火大模型提供多领域、多语言的强大 AI 能力,利用先进的自然语言处理技术,构建适用于智能硬件、智慧医疗、智慧金融等多种垂直场景的创新应用。
172
171
  - **[ZhiPu](https://lobechat.com/discover/provider/zhipu)**: 智谱 AI 提供多模态与语言模型的开放平台,支持广泛的 AI 应用场景,包括文本处理、图像理解与编程辅助等。
172
+ - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconCloud,基于优秀开源基础模型的高性价比 GenAI 云服务
173
173
  - **[01.AI](https://lobechat.com/discover/provider/zeroone)**: 零一万物致力于推动以人为本的 AI 2.0 技术革命,旨在通过大语言模型创造巨大的经济和社会价值,并开创新的 AI 生态与商业模式。
174
+ - **[Spark](https://lobechat.com/discover/provider/spark)**: 科大讯飞星火大模型提供多领域、多语言的强大 AI 能力,利用先进的自然语言处理技术,构建适用于智能硬件、智慧医疗、智慧金融等多种垂直场景的创新应用。
174
175
  - **[SenseNova](https://lobechat.com/discover/provider/sensenova)**: 商汤日日新,依托商汤大装置的强大的基础支撑,提供高效易用的全栈大模型服务。
175
176
  - **[Stepfun](https://lobechat.com/discover/provider/stepfun)**: 阶级星辰大模型具备行业领先的多模态及复杂推理能力,支持超长文本理解和强大的自主调度搜索引擎功能。
176
177
  - **[Moonshot](https://lobechat.com/discover/provider/moonshot)**: Moonshot 是由北京月之暗面科技有限公司推出的开源平台,提供多种自然语言处理模型,应用领域广泛,包括但不限于内容创作、学术研究、智能推荐、医疗诊断等,支持长文本处理和复杂生成任务。
177
178
  - **[Baichuan](https://lobechat.com/discover/provider/baichuan)**: 百川智能是一家专注于人工智能大模型研发的公司,其模型在国内知识百科、长文本处理和生成创作等中文任务上表现卓越,超越了国外主流模型。百川智能还具备行业领先的多模态能力,在多项权威评测中表现优异。其模型包括 Baichuan 4、Baichuan 3 Turbo 和 Baichuan 3 Turbo 128k 等,分别针对不同应用场景进行优化,提供高性价比的解决方案。
178
179
  - **[Minimax](https://lobechat.com/discover/provider/minimax)**: MiniMax 是 2021 年成立的通用人工智能科技公司,致力于与用户共创智能。MiniMax 自主研发了不同模态的通用大模型,其中包括万亿参数的 MoE 文本大模型、语音大模型以及图像大模型。并推出了海螺 AI 等应用。
179
- - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI 是 360 公司推出的 AI 模型和服务平台,提供多种先进的自然语言处理模型,包括 360GPT2 Pro、360GPT Pro、360GPT Turbo 和 360GPT Turbo Responsibility 8K。这些模型结合了大规模参数和多模态能力,广泛应用于文本生成、语义理解、对话系统与代码生成等领域。通过灵活的定价策略,360 AI 满足多样化用户需求,支持开发者集成,推动智能化应用的革新和发展。
180
- - **[SiliconCloud](https://lobechat.com/discover/provider/siliconcloud)**: SiliconCloud,基于优秀开源基础模型的高性价比 GenAI 云服务
181
180
  - **[InternLM](https://lobechat.com/discover/provider/internlm)**: 致力于大模型研究与开发工具链的开源组织。为所有 AI 开发者提供高效、易用的开源平台,让最前沿的大模型与算法技术触手可及
182
181
  - **[Higress](https://lobechat.com/discover/provider/higress)**: Higress 是一款云原生 API 网关,在阿里内部为解决 Tengine reload 对长连接业务有损,以及 gRPC/Dubbo 负载均衡能力不足而诞生。
183
182
  - **[Gitee AI](https://lobechat.com/discover/provider/giteeai)**: Gitee AI 的 Serverless API 为 AI 开发者提供开箱即用的大模型推理 API 服务。
184
183
  - **[Taichu](https://lobechat.com/discover/provider/taichu)**: 中科院自动化研究所和武汉人工智能研究院推出新一代多模态大模型,支持多轮问答、文本创作、图像生成、3D 理解、信号分析等全面问答任务,拥有更强的认知、理解、创作能力,带来全新互动体验。
184
+ - **[360 AI](https://lobechat.com/discover/provider/ai360)**: 360 AI 是 360 公司推出的 AI 模型和服务平台,提供多种先进的自然语言处理模型,包括 360GPT2 Pro、360GPT Pro、360GPT Turbo 和 360GPT Turbo Responsibility 8K。这些模型结合了大规模参数和多模态能力,广泛应用于文本生成、语义理解、对话系统与代码生成等领域。通过灵活的定价策略,360 AI 满足多样化用户需求,支持开发者集成,推动智能化应用的革新和发展。
185
185
 
186
186
  </details>
187
187
 
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add auth support for PROXY_URL."
6
+ ]
7
+ },
8
+ "date": "2025-01-15",
9
+ "version": "1.46.1"
10
+ },
11
+ {
12
+ "children": {
13
+ "features": [
14
+ "Add lm studio provider, support to customize Embedding model with env."
15
+ ]
16
+ },
17
+ "date": "2025-01-15",
18
+ "version": "1.46.0"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
@@ -62,3 +62,12 @@ Unstructured.io is a powerful document processing tool.
62
62
  - **Note**: Evaluate processing needs based on document complexity
63
63
 
64
64
  By correctly configuring and integrating these core components, you can build a powerful and efficient knowledge base system for LobeChat. Each component plays a crucial role in the overall architecture, supporting advanced document management and intelligent retrieval functions.
65
+
66
+ ### 5. Custom Embedding
67
+
68
+ - **Purpose**: Use different Embedding generate vector representations for semantic search
69
+ - **Options**: support model provider list: zhipu/github/openai/bedrock/ollama
70
+ - **Deployment Tip**: Used to configure the default Embedding model
71
+ ```
72
+ environment: DEFAULT_FILES_CONFIG=embedding_model=openai/embedding-text-3-small
73
+ ```
@@ -60,3 +60,12 @@ Unstructured.io 是一个强大的文档处理工具。
60
60
  - **注意事项**:评估处理需求,根据文档复杂度决定是否部署
61
61
 
62
62
  通过正确配置和集成这些核心组件,您可以为 LobeChat 构建一个强大、高效的知识库系统。每个组件都在整体架构中扮演着关键角色,共同支持高级的文档管理和智能检索功能。
63
+
64
+ ### 5. 自定义 Embedding(可选)
65
+
66
+ - **用途**: 使用不同的嵌入模型(Embedding)生成文本的向量表示,用于语义搜索
67
+ - **选项**: 支持的模型提供商:zhipu/github/openai/bedrock/ollama
68
+ - **部署建议**: 使用环境变量配置默认嵌入模型
69
+ ```
70
+ environment: DEFAULT_FILES_CONFIG=embedding_model=openai/embedding-text-3-small
71
+ ```
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "منظمة مفتوحة المصدر مكرسة لأبحاث وتطوير أدوات النماذج الكبيرة. توفر منصة مفتوحة المصدر فعالة وسهلة الاستخدام لجميع مطوري الذكاء الاصطناعي، مما يجعل أحدث تقنيات النماذج الكبيرة والخوارزميات في متناول اليد."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio هو تطبيق سطح مكتب لتطوير وتجربة نماذج اللغة الكبيرة (LLMs) على جهاز الكمبيوتر الخاص بك."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax هي شركة تكنولوجيا الذكاء الاصطناعي العامة التي تأسست في عام 2021، تكرس جهودها للتعاون مع المستخدمين في إنشاء الذكاء. طورت MiniMax نماذج كبيرة عامة من أوضاع مختلفة، بما في ذلك نموذج نصي MoE الذي يحتوي على تريليونات من المعلمات، ونموذج صوتي، ونموذج صور. وقد أطلقت تطبيقات مثل Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Отворена организация, посветена на изследването и разработването на инструменти за големи модели. Предоставя на всички AI разработчици ефективна и лесна за използване отворена платформа, която прави най-съвременните технологии и алгоритми за големи модели достъпни."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio е настолно приложение за разработка и експериментиране с LLMs на вашия компютър."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax е компания за универсален изкуствен интелект, основана през 2021 г., която се стреми да създаде интелигентност заедно с потребителите. MiniMax е разработила различни универсални големи модели, включително текстови модели с трилйон параметри, модели за глас и модели за изображения. Също така е пуснала приложения като Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Eine Open-Source-Organisation, die sich der Forschung und Entwicklung von großen Modellen und Werkzeugketten widmet. Sie bietet allen KI-Entwicklern eine effiziente und benutzerfreundliche Open-Source-Plattform, die den Zugang zu den neuesten Technologien und Algorithmen für große Modelle ermöglicht."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio ist eine Desktop-Anwendung zum Entwickeln und Experimentieren mit LLMs auf Ihrem Computer."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax ist ein im Jahr 2021 gegründetes Unternehmen für allgemeine künstliche Intelligenz, das sich der gemeinsamen Schaffung von Intelligenz mit den Nutzern widmet. MiniMax hat verschiedene multimodale allgemeine große Modelle entwickelt, darunter ein Textmodell mit Billionen von Parametern, ein Sprachmodell und ein Bildmodell. Außerdem wurden Anwendungen wie Conch AI eingeführt."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "An open-source organization dedicated to the research and development of large model toolchains. It provides an efficient and user-friendly open-source platform for all AI developers, making cutting-edge large models and algorithm technologies easily accessible."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio is a desktop application for developing and experimenting with LLMs on your computer."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax is a general artificial intelligence technology company established in 2021, dedicated to co-creating intelligence with users. MiniMax has independently developed general large models of different modalities, including trillion-parameter MoE text models, voice models, and image models, and has launched applications such as Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Organización de código abierto dedicada a la investigación y desarrollo de herramientas para modelos grandes. Proporciona a todos los desarrolladores de IA una plataforma de código abierto eficiente y fácil de usar, permitiendo el acceso a las tecnologías y algoritmos más avanzados."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio es una aplicación de escritorio para desarrollar y experimentar con LLMs en su computadora."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax es una empresa de tecnología de inteligencia artificial general fundada en 2021, dedicada a co-crear inteligencia con los usuarios. MiniMax ha desarrollado de forma independiente modelos de gran tamaño de diferentes modalidades, que incluyen un modelo de texto MoE de un billón de parámetros, un modelo de voz y un modelo de imagen. También ha lanzado aplicaciones como Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "سازمان متن باز متعهد به تحقیق و توسعه ابزارهای مدل‌های بزرگ. ارائه یک پلتفرم متن باز کارآمد و آسان برای تمام توسعه‌دهندگان هوش مصنوعی، تا جدیدترین مدل‌ها و تکنیک‌های الگوریتمی در دسترس باشد."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio یک برنامه دسکتاپ برای توسعه و آزمایش LLM ها بر روی رایانه شما است."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax یک شرکت فناوری هوش مصنوعی عمومی است که در سال 2021 تأسیس شد و به همکاری با کاربران برای ایجاد هوش مصنوعی متعهد است. MiniMax به‌طور مستقل مدل‌های بزرگ عمومی چندگانه‌ای را توسعه داده است، از جمله مدل متنی MoE با تریلیون‌ها پارامتر، مدل صوتی و مدل تصویری. همچنین برنامه‌هایی مانند حلزون AI را معرفی کرده است."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Organisation open source dédiée à la recherche et au développement d'outils pour les grands modèles. Fournit à tous les développeurs d'IA une plateforme open source efficace et facile à utiliser, rendant les technologies de pointe en matière de grands modèles et d'algorithmes accessibles."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio est une application de bureau pour développer et expérimenter des LLM sur votre ordinateur."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax est une entreprise de technologie d'intelligence artificielle générale fondée en 2021, dédiée à la co-création d'intelligence avec les utilisateurs. MiniMax a développé de manière autonome différents modèles de grande taille, y compris un modèle de texte MoE à un trillion de paramètres, un modèle vocal et un modèle d'image. Elle a également lancé des applications telles que Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Un'organizzazione open source dedicata alla ricerca e allo sviluppo di strumenti per modelli di grandi dimensioni. Fornisce a tutti gli sviluppatori di AI una piattaforma open source efficiente e facile da usare, rendendo le tecnologie e gli algoritmi all'avanguardia accessibili a tutti."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio è un'applicazione desktop per sviluppare e sperimentare LLM sul tuo computer."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax è un'azienda di tecnologia dell'intelligenza artificiale generale fondata nel 2021, dedicata alla co-creazione di intelligenza con gli utenti. MiniMax ha sviluppato modelli generali di diverse modalità, tra cui un modello di testo MoE con trilioni di parametri, un modello vocale e un modello visivo. Ha anche lanciato applicazioni come Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "大規模モデルの研究と開発ツールチェーンに特化したオープンソース組織です。すべてのAI開発者に対して、高効率で使いやすいオープンプラットフォームを提供し、最先端の大規模モデルとアルゴリズム技術を身近に感じられるようにします。"
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studioは、あなたのコンピュータ上でLLMを開発し、実験するためのデスクトップアプリケーションです。"
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMaxは2021年に設立された汎用人工知能テクノロジー企業であり、ユーザーと共に知能を共創することに取り組んでいます。MiniMaxは、さまざまなモードの汎用大モデルを独自に開発しており、トリリオンパラメータのMoEテキスト大モデル、音声大モデル、画像大モデルを含んでいます。また、海螺AIなどのアプリケーションも展開しています。"
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "대규모 모델 연구 및 개발 도구 체인에 전념하는 오픈 소스 조직입니다. 모든 AI 개발자에게 효율적이고 사용하기 쉬운 오픈 소스 플랫폼을 제공하여 최첨단 대규모 모델 및 알고리즘 기술을 손쉽게 이용할 수 있도록 합니다."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio는 귀하의 컴퓨터에서 LLM을 개발하고 실험하기 위한 데스크탑 애플리케이션입니다."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax는 2021년에 설립된 일반 인공지능 기술 회사로, 사용자와 함께 지능을 공동 창출하는 데 전념하고 있습니다. MiniMax는 다양한 모드의 일반 대형 모델을 독자적으로 개발하였으며, 여기에는 조 단위의 MoE 텍스트 대형 모델, 음성 대형 모델 및 이미지 대형 모델이 포함됩니다. 또한 해마 AI와 같은 응용 프로그램을 출시하였습니다."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Een open-source organisatie die zich richt op onderzoek en ontwikkeling van tools voor grote modellen. Biedt een efficiënt en gebruiksvriendelijk open-source platform voor alle AI-ontwikkelaars, zodat de meest geavanceerde modellen en algoritmische technologieën binnen handbereik zijn."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio is een desktopapplicatie voor het ontwikkelen en experimenteren met LLM's op uw computer."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax is een algemeen kunstmatige intelligentietechnologiebedrijf dat in 2021 is opgericht, en zich richt op co-creatie van intelligentie met gebruikers. MiniMax heeft verschillende multimodale algemene grote modellen ontwikkeld, waaronder een MoE-tekstgrootmodel met triljoenen parameters, een spraakgrootmodel en een afbeeldingsgrootmodel. Ze hebben ook toepassingen zoals Conch AI gelanceerd."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Organizacja open source poświęcona badaniom i rozwojowi narzędzi dla dużych modeli. Oferuje wszystkim deweloperom AI wydajną i łatwą w użyciu platformę open source, umożliwiającą dostęp do najnowocześniejszych technologii modeli i algorytmów."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio to aplikacja desktopowa do rozwijania i eksperymentowania z LLM-ami na Twoim komputerze."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax to firma technologiczna zajmująca się ogólną sztuczną inteligencją, założona w 2021 roku, dążąca do współtworzenia inteligencji z użytkownikami. MiniMax opracowało różne modele dużych modeli o różnych modalnościach, w tym model tekstowy MoE z bilionem parametrów, model głosowy oraz model obrazowy. Wprowadziło również aplikacje takie jak Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Uma organização de código aberto dedicada à pesquisa e desenvolvimento de ferramentas para grandes modelos. Oferece uma plataforma de código aberto eficiente e fácil de usar para todos os desenvolvedores de IA, tornando as tecnologias e algoritmos de ponta acessíveis."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio é um aplicativo de desktop para desenvolver e experimentar LLMs em seu computador."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax é uma empresa de tecnologia de inteligência artificial geral fundada em 2021, dedicada a co-criar inteligência com os usuários. A MiniMax desenvolveu internamente diferentes modelos gerais de grande escala, incluindo um modelo de texto MoE com trilhões de parâmetros, um modelo de voz e um modelo de imagem. Também lançou aplicações como Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Открытая организация, занимающаяся исследованием и разработкой инструментов для больших моделей. Предоставляет всем разработчикам ИИ эффективную и удобную открытую платформу, позволяя получить доступ к самым современным технологиям больших моделей и алгоритмов."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio — это настольное приложение для разработки и экспериментов с LLM на вашем компьютере."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax — это компания по разработке универсального искусственного интеллекта, основанная в 2021 году, стремящаяся к совместному созданию интеллекта с пользователями. MiniMax самостоятельно разработала универсальные большие модели различных модальностей, включая текстовые модели с триллионом параметров, модели речи и модели изображений. Также были запущены приложения, такие как Conch AI."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Büyük model araştırma ve geliştirme araç zincirine adanmış bir açık kaynak organizasyonu. Tüm AI geliştiricilerine verimli ve kullanımı kolay bir açık kaynak platformu sunarak en son büyük model ve algoritma teknolojilerine erişimi kolaylaştırır."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio, bilgisayarınızda LLM'ler geliştirmek ve denemeler yapmak için bir masaüstü uygulamasıdır."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax, 2021 yılında kurulan genel yapay zeka teknolojisi şirketidir ve kullanıcılarla birlikte akıllı çözümler yaratmayı hedeflemektedir. MiniMax, farklı modlarda genel büyük modeller geliştirmiştir. Bunlar arasında trilyon parametreli MoE metin büyük modeli, ses büyük modeli ve görüntü büyük modeli bulunmaktadır. Ayrıca, Conch AI gibi uygulamalar da sunmaktadır."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "Tổ chức mã nguồn mở chuyên nghiên cứu và phát triển công cụ cho mô hình lớn. Cung cấp nền tảng mã nguồn mở hiệu quả, dễ sử dụng cho tất cả các nhà phát triển AI, giúp tiếp cận công nghệ mô hình lớn và thuật toán tiên tiến nhất."
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio là một ứng dụng máy tính để phát triển và thử nghiệm các LLM trên máy tính của bạn."
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax là công ty công nghệ trí tuệ nhân tạo tổng quát được thành lập vào năm 2021, cam kết cùng người dùng sáng tạo trí thông minh. MiniMax đã tự phát triển nhiều mô hình lớn đa phương thức, bao gồm mô hình văn bản MoE với một triệu tham số, mô hình giọng nói và mô hình hình ảnh. Họ cũng đã phát hành các ứng dụng như AI Hải Lý."
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "致力于大模型研究与开发工具链的开源组织。为所有 AI 开发者提供高效、易用的开源平台,让最前沿的大模型与算法技术触手可及"
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio 是一个用于在您的计算机上开发和实验 LLMs 的桌面应用程序。"
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax 是 2021 年成立的通用人工智能科技公司,致力于与用户共创智能。MiniMax 自主研发了不同模态的通用大模型,其中包括万亿参数的 MoE 文本大模型、语音大模型以及图像大模型。并推出了海螺 AI 等应用。"
55
58
  },
@@ -50,6 +50,9 @@
50
50
  "internlm": {
51
51
  "description": "致力於大模型研究與開發工具鏈的開源組織。為所有 AI 開發者提供高效、易用的開源平台,讓最前沿的大模型與算法技術觸手可及"
52
52
  },
53
+ "lmstudio": {
54
+ "description": "LM Studio 是一個用於在您的電腦上開發和實驗 LLMs 的桌面應用程式。"
55
+ },
53
56
  "minimax": {
54
57
  "description": "MiniMax 是 2021 年成立的通用人工智慧科技公司,致力於與用戶共創智能。MiniMax 自主研發了不同模態的通用大模型,其中包括萬億參數的 MoE 文本大模型、語音大模型以及圖像大模型。並推出了海螺 AI 等應用。"
55
58
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.45.17",
3
+ "version": "1.46.1",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -172,7 +172,7 @@
172
172
  "langfuse": "3.29.1",
173
173
  "langfuse-core": "3.29.1",
174
174
  "lodash-es": "^4.17.21",
175
- "lucide-react": "^0.469.0",
175
+ "lucide-react": "^0.471.0",
176
176
  "mammoth": "^1.9.0",
177
177
  "modern-screenshot": "^4.5.5",
178
178
  "nanoid": "^5.0.9",
@@ -29,8 +29,8 @@ const isValidIP = (ip, version = 4) => {
29
29
 
30
30
  // Function to parse protocol, host and port from a URL
31
31
  const parseUrl = (url) => {
32
- const { protocol, hostname: host, port } = new URL(url);
33
- return { host, port: port || 443, protocol: protocol.replace(':', '') };
32
+ const { protocol, hostname: host, port, username: user, password: pass } = new URL(url);
33
+ return { host, pass, port: port || 443, protocol: protocol.replace(':', ''), user };
34
34
  };
35
35
 
36
36
  // Function to resolve host IP via DNS
@@ -55,7 +55,7 @@ const resolveHostIP = async (host, version = 4) => {
55
55
 
56
56
  // Function to generate proxychains configuration
57
57
  const runProxyChainsConfGenerator = async (url) => {
58
- const { protocol, host, port } = parseUrl(url);
58
+ const { protocol, host, port, user, pass } = parseUrl(url);
59
59
 
60
60
  if (!['http', 'socks4', 'socks5'].includes(protocol)) {
61
61
  console.error(
@@ -76,6 +76,9 @@ const runProxyChainsConfGenerator = async (url) => {
76
76
 
77
77
  const configContent = `
78
78
  localnet 127.0.0.0/255.0.0.0
79
+ localnet 10.0.0.0/255.0.0.0
80
+ localnet 172.16.0.0/255.240.0.0
81
+ localnet 192.168.0.0/255.255.0.0
79
82
  localnet ::1/128
80
83
  proxy_dns
81
84
  remote_dns_subnet 224
@@ -83,11 +86,11 @@ strict_chain
83
86
  tcp_connect_time_out 8000
84
87
  tcp_read_time_out 15000
85
88
  [ProxyList]
86
- ${protocol} ${ip} ${port}
89
+ ${protocol} ${ip} ${port} ${user} ${pass}
87
90
  `.trim();
88
91
 
89
92
  await fs.writeFile(PROXYCHAINS_CONF_PATH, configContent);
90
- console.log(`✅ ProxyChains: All outgoing traffic routed via ${protocol}://${ip}:${port}.`);
93
+ console.log(`✅ ProxyChains: All outgoing traffic routed via ${url}.`);
91
94
  console.log('-------------------------------------');
92
95
  };
93
96
 
@@ -3,7 +3,6 @@
3
3
  import { memo } from 'react';
4
4
  import { Flexbox } from 'react-layout-kit';
5
5
 
6
-
7
6
  import ModelList from '../../features/ModelList';
8
7
  import ProviderConfig, { ProviderConfigProps } from '../../features/ProviderConfig';
9
8
 
@@ -17,6 +17,7 @@ import { default as higress } from './higress';
17
17
  import { default as huggingface } from './huggingface';
18
18
  import { default as hunyuan } from './hunyuan';
19
19
  import { default as internlm } from './internlm';
20
+ import { default as lmstudio } from './lmstudio';
20
21
  import { default as minimax } from './minimax';
21
22
  import { default as mistral } from './mistral';
22
23
  import { default as moonshot } from './moonshot';
@@ -75,6 +76,7 @@ export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
75
76
  huggingface,
76
77
  hunyuan,
77
78
  internlm,
79
+ lmstudio,
78
80
  minimax,
79
81
  mistral,
80
82
  moonshot,
@@ -114,6 +116,7 @@ export { default as higress } from './higress';
114
116
  export { default as huggingface } from './huggingface';
115
117
  export { default as hunyuan } from './hunyuan';
116
118
  export { default as internlm } from './internlm';
119
+ export { default as lmstudio } from './lmstudio';
117
120
  export { default as minimax } from './minimax';
118
121
  export { default as mistral } from './mistral';
119
122
  export { default as moonshot } from './moonshot';
@@ -0,0 +1,27 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const lmStudioChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {},
6
+ contextWindowTokens: 128_000,
7
+ description:
8
+ 'Llama 3.1 是 Meta 推出的领先模型,支持高达 405B 参数,可应用于复杂对话、多语言翻译和数据分析领域。',
9
+ displayName: 'Llama 3.1 8B',
10
+ enabled: true,
11
+ id: 'llama3.1',
12
+ type: 'chat',
13
+ },
14
+ {
15
+ abilities: {},
16
+ contextWindowTokens: 128_000,
17
+ description: 'Qwen2.5 是阿里巴巴的新一代大规模语言模型,以优异的性能支持多元化的应用需求。',
18
+ displayName: 'Qwen2.5 14B',
19
+ enabled: true,
20
+ id: 'qwen2.5-14b-instruct',
21
+ type: 'chat',
22
+ },
23
+ ];
24
+
25
+ export const allModels = [...lmStudioChatModels];
26
+
27
+ export default allModels;
@@ -4,10 +4,12 @@ import { z } from 'zod';
4
4
  export const getKnowledgeConfig = () => {
5
5
  return createEnv({
6
6
  runtimeEnv: {
7
+ DEFAULT_FILES_CONFIG: process.env.DEFAULT_FILES_CONFIG,
7
8
  UNSTRUCTURED_API_KEY: process.env.UNSTRUCTURED_API_KEY,
8
9
  UNSTRUCTURED_SERVER_URL: process.env.UNSTRUCTURED_SERVER_URL,
9
10
  },
10
11
  server: {
12
+ DEFAULT_FILES_CONFIG: z.string().optional(),
11
13
  UNSTRUCTURED_API_KEY: z.string().optional(),
12
14
  UNSTRUCTURED_SERVER_URL: z.string().optional(),
13
15
  },
@@ -17,6 +17,7 @@ import HigressProvider from './higress';
17
17
  import HuggingFaceProvider from './huggingface';
18
18
  import HunyuanProvider from './hunyuan';
19
19
  import InternLMProvider from './internlm';
20
+ import LMStudioProvider from './lmstudio';
20
21
  import MinimaxProvider from './minimax';
21
22
  import MistralProvider from './mistral';
22
23
  import MoonshotProvider from './moonshot';
@@ -104,20 +105,21 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [
104
105
  QwenProvider,
105
106
  WenxinProvider,
106
107
  HunyuanProvider,
107
- SparkProvider,
108
108
  ZhiPuProvider,
109
+ SiliconCloudProvider,
109
110
  ZeroOneProvider,
111
+ SparkProvider,
110
112
  SenseNovaProvider,
111
113
  StepfunProvider,
112
114
  MoonshotProvider,
113
115
  BaichuanProvider,
114
116
  MinimaxProvider,
115
- Ai360Provider,
116
- SiliconCloudProvider,
117
+ LMStudioProvider,
117
118
  InternLMProvider,
118
119
  HigressProvider,
119
120
  GiteeAIProvider,
120
121
  TaichuProvider,
122
+ Ai360Provider,
121
123
  ];
122
124
 
123
125
  export const filterEnabledModels = (provider: ModelProviderCard) => {
@@ -146,6 +148,7 @@ export { default as HigressProviderCard } from './higress';
146
148
  export { default as HuggingFaceProviderCard } from './huggingface';
147
149
  export { default as HunyuanProviderCard } from './hunyuan';
148
150
  export { default as InternLMProviderCard } from './internlm';
151
+ export { default as LMStudioProviderCard } from './lmstudio';
149
152
  export { default as MinimaxProviderCard } from './minimax';
150
153
  export { default as MistralProviderCard } from './mistral';
151
154
  export { default as MoonshotProviderCard } from './moonshot';