mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-16 04:25:59 +00:00
🐛 fix: fix streamable http url valid and refactor local files to local system (#7794)
* refactor local files to local system * update i18n
This commit is contained in:
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 هو نموذج لغوي كبير من الجيل الجديد من Alibaba، يدعم أداءً ممتازًا لتلبية احتياجات التطبيقات المتنوعة."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 هو الجيل الجديد من نموذج اللغة واسع النطاق من علي بابا، يدعم مجموعة متنوعة من احتياجات التطبيقات بأداء ممتاز."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 هو نموذج جديد من الجيل التالي مع تحسينات كبيرة في القدرات، حيث يصل إلى مستويات رائدة في الصناعة في الاستدلال، والعموم، والوكلاء، واللغات المتعددة، ويدعم التبديل بين أنماط التفكير."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "نوع ملحق MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "أدخل عنوان HTTP القابل للبث لخادم MCP الخاص بك، ولا ينتهي بـ /sse",
|
||||
"desc": "أدخل عنوان HTTP القابل للبث لخادم MCP الخاص بك، لا يدعم وضع SSE",
|
||||
"invalid": "يرجى إدخال عنوان URL صالح",
|
||||
"label": "عنوان URL لنقطة نهاية HTTP",
|
||||
"required": "يرجى إدخال عنوان URL لخدمة MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 е новото поколение голям езиков модел на Alibaba, предлагащ отлична производителност за разнообразни приложения."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 е новото поколение на Alibaba голям езиков модел, който предлага отлична производителност, за да отговори на разнообразни приложения."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 е ново поколение модел с значително подобрени способности, който достига водещо ниво в индустрията в области като разсъждение, общо използване, агенти и многоезичност, и поддържа превключване на режимите на разсъждение."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Тип на MCP плъгин"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Въведете адреса на вашия MCP сървър Streamable HTTP, който не завършва с /sse",
|
||||
"desc": "Въведете адреса на вашия MCP сървър Streamable HTTP, не поддържа режим SSE",
|
||||
"invalid": "Моля, въведете валиден URL адрес",
|
||||
"label": "HTTP Endpoint URL",
|
||||
"required": "Моля, въведете URL на MCP услугата"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 ist das neue große Sprachmodell von Alibaba, das mit hervorragender Leistung eine Vielzahl von Anwendungsanforderungen unterstützt."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 ist das neue, großangelegte Sprachmodell von Alibaba, das mit hervorragender Leistung vielfältige Anwendungsbedürfnisse unterstützt."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 ist ein neues, leistungsstarkes Modell der nächsten Generation, das in den Bereichen Inferenz, Allgemeinwissen, Agenten und Mehrsprachigkeit erhebliche Fortschritte erzielt hat und den Wechsel zwischen Denkmodi unterstützt."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP-Plugin-Typ"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Geben Sie Ihre MCP-Server-Streamable-HTTP-Adresse ein, die nicht mit /sse endet",
|
||||
"desc": "Geben Sie Ihre MCP-Server-Streamable-HTTP-Adresse ein, SSE-Modus wird nicht unterstützt",
|
||||
"invalid": "Bitte geben Sie eine gültige URL ein",
|
||||
"label": "HTTP Endpoint-URL",
|
||||
"required": "Bitte geben Sie die MCP-Dienst-URL ein"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 is Alibaba's next-generation large-scale language model, supporting diverse application needs with excellent performance."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 is Alibaba's next-generation large-scale language model, designed to support diverse application needs with outstanding performance."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 is a next-generation model with significantly enhanced capabilities, achieving industry-leading levels in reasoning, general tasks, agent functionality, and multilingual support, while also supporting mode switching."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP Plugin Type"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Enter your MCP Server Streamable HTTP address, which should not end with /sse",
|
||||
"desc": "Enter your MCP Server Streamable HTTP address, SSE mode is not supported.",
|
||||
"invalid": "Please enter a valid URL",
|
||||
"label": "HTTP Endpoint URL",
|
||||
"required": "Please enter the MCP service URL"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 es el nuevo modelo de lenguaje a gran escala de Alibaba, que ofrece un rendimiento excepcional para satisfacer diversas necesidades de aplicación."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 es la nueva generación de modelo de lenguaje a gran escala de Alibaba, que ofrece un rendimiento excepcional para satisfacer diversas necesidades de aplicación."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 es un modelo de nueva generación con capacidades significativamente mejoradas, alcanzando niveles líderes en la industria en razonamiento, generalidad, agentes y multilingüismo, y soporta el cambio de modo de pensamiento."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Tipo de complemento MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Introduce la dirección HTTP transmitible de tu servidor MCP, que no debe terminar con /sse",
|
||||
"desc": "Introduce la dirección HTTP transmitible de tu servidor MCP, no se admite el modo SSE",
|
||||
"invalid": "Por favor, introduce una URL válida",
|
||||
"label": "URL del Endpoint HTTP",
|
||||
"required": "Por favor, introduce la URL del servicio MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 مدل زبان بزرگ نسل جدید علیبابا است که با عملکرد عالی از نیازهای متنوع کاربردی پشتیبانی میکند."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 مدل زبان نسل جدید علیبابا است که با عملکرد عالی، نیازهای متنوع کاربردی را پشتیبانی میکند."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 یک مدل جدید نسل جدید با تواناییهای به طور قابل توجهی بهبود یافته است که در استدلال، عمومی، نمایندگی و چند زبانه در چندین توانایی کلیدی به سطح پیشرفته صنعت دست یافته و از جابجایی حالت تفکر پشتیبانی میکند."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "نوع افزونه MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "آدرس HTTP قابل پخش سرور MCP خود را وارد کنید، که با /sse پایان نمییابد",
|
||||
"desc": "آدرس HTTP قابل پخش سرور MCP خود را وارد کنید، حالت SSE پشتیبانی نمیشود",
|
||||
"invalid": "لطفاً یک آدرس URL معتبر وارد کنید",
|
||||
"label": "آدرس URL نقطه پایانی HTTP",
|
||||
"required": "لطفاً URL سرویس MCP را وارد کنید"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 est le nouveau modèle de langage à grande échelle d'Alibaba, offrant d'excellentes performances pour des besoins d'application diversifiés."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 est le nouveau modèle de langage à grande échelle d'Alibaba, offrant d'excellentes performances pour répondre à des besoins d'application diversifiés."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 est un modèle de nouvelle génération avec des capacités considérablement améliorées, atteignant des niveaux de pointe dans plusieurs compétences clés telles que le raisonnement, l'universalité, l'agent et le multilingue, tout en prenant en charge le changement de mode de pensée."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Type de plugin MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Entrez l'adresse HTTP Streamable de votre serveur MCP, sans terminer par /sse",
|
||||
"desc": "Entrez l'adresse HTTP Streamable de votre serveur MCP, le mode SSE n'est pas pris en charge",
|
||||
"invalid": "Veuillez entrer une URL valide",
|
||||
"label": "URL de l'endpoint HTTP",
|
||||
"required": "Veuillez entrer l'URL du service MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 è la nuova generazione di modelli di linguaggio su larga scala di Alibaba, supporta prestazioni eccellenti per esigenze applicative diversificate."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 è la nuova generazione di modelli linguistici su larga scala di Alibaba, che supporta una varietà di esigenze applicative con prestazioni eccellenti."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 è un modello di nuova generazione con capacità notevolmente migliorate, raggiungendo livelli leader del settore in inferenza, generazione generale, agenti e multilinguismo, e supporta il passaggio tra modalità di pensiero."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Tipo di plugin MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Inserisci l'indirizzo HTTP Streamable del tuo server MCP, che non deve terminare con /sse",
|
||||
"desc": "Inserisci il tuo indirizzo HTTP Streamable del server MCP, il supporto per la modalità SSE non è disponibile",
|
||||
"invalid": "Inserisci un URL valido",
|
||||
"label": "URL Endpoint HTTP",
|
||||
"required": "Inserisci l'URL del servizio MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2は、Alibabaの新世代大規模言語モデルであり、優れた性能で多様なアプリケーションニーズをサポートします。"
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3は、Alibabaの次世代大規模言語モデルであり、優れた性能で多様なアプリケーションニーズをサポートします。"
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3は能力が大幅に向上した新世代の通義千問大モデルで、推論、一般、エージェント、多言語などの複数のコア能力において業界のリーダーレベルに達し、思考モードの切り替えをサポートしています。"
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCPプラグインタイプ"
|
||||
},
|
||||
"url": {
|
||||
"desc": "あなたのMCPサーバーストリーミングHTTPアドレスを入力してください。/sseで終わることはありません",
|
||||
"desc": "あなたのMCPサーバーのストリーミングHTTPアドレスを入力してください。SSEモードはサポートされていません。",
|
||||
"invalid": "有効な URL アドレスを入力してください",
|
||||
"label": "HTTP エンドポイント URL",
|
||||
"required": "MCP サービスの URL を入力してください"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2는 Alibaba의 차세대 대규모 언어 모델로, 뛰어난 성능으로 다양한 응용 요구를 지원합니다."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3는 알리바바의 차세대 대규모 언어 모델로, 뛰어난 성능으로 다양한 응용 요구를 지원합니다."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3는 능력이 대폭 향상된 새로운 세대의 통합 지식 모델로, 추론, 일반, 에이전트 및 다국어 등 여러 핵심 능력에서 업계 선두 수준에 도달하며, 사고 모드 전환을 지원합니다."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP 플러그인 유형"
|
||||
},
|
||||
"url": {
|
||||
"desc": "MCP 서버의 스트리밍 HTTP 주소를 입력하세요. /sse로 끝나지 않습니다.",
|
||||
"desc": "MCP 서버의 스트리밍 HTTP 주소를 입력하세요. SSE 모드는 지원하지 않습니다.",
|
||||
"invalid": "유효한 URL 주소를 입력하세요",
|
||||
"label": "HTTP 엔드포인트 URL",
|
||||
"required": "MCP 서비스 URL을 입력하세요"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 is Alibaba's nieuwe generatie grootschalig taalmodel, ondersteunt diverse toepassingsbehoeften met uitstekende prestaties."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 is het nieuwe generatie grootschalige taalmodel van Alibaba, dat uitstekende prestaties levert ter ondersteuning van diverse applicatiebehoeften."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 is een nieuwe generatie van het Qwen grote model met aanzienlijk verbeterde capaciteiten, die de industrie leidende niveaus bereikt in redeneren, algemeen gebruik, agent en meertalige ondersteuning, en ondersteunt de schakeling tussen denkmodi."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP-plugintype"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Voer je MCP Server Streamable HTTP-adres in, dit eindigt niet op /sse",
|
||||
"desc": "Voer je MCP Server Streamable HTTP-adres in, SSE-modus wordt niet ondersteund",
|
||||
"invalid": "Voer een geldige URL in",
|
||||
"label": "HTTP Endpoint URL",
|
||||
"required": "Voer de MCP service URL in"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 to nowa generacja dużego modelu językowego Alibaba, wspierająca różnorodne potrzeby aplikacyjne dzięki doskonałej wydajności."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 to nowa generacja dużego modelu językowego od Alibaba, który wspiera różnorodne potrzeby aplikacyjne dzięki doskonałej wydajności."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 to nowa generacja modelu Qwen, który znacznie zwiększa możliwości w zakresie wnioskowania, ogólności, agenta i wielojęzyczności, osiągając wiodące w branży wyniki w wielu kluczowych obszarach i wspierając przełączanie trybów myślenia."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Typ wtyczki MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Wprowadź adres HTTP swojego serwera MCP Streamable, który nie kończy się na /sse",
|
||||
"desc": "Wprowadź adres URL swojego serwera MCP Streamable HTTP, nie obsługuje trybu SSE",
|
||||
"invalid": "Proszę wprowadzić prawidłowy adres URL",
|
||||
"label": "URL punktu końcowego HTTP",
|
||||
"required": "Proszę wprowadzić adres URL usługi MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 é a nova geração de modelo de linguagem em larga escala da Alibaba, oferecendo desempenho excepcional para atender a diversas necessidades de aplicação."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 é a nova geração do modelo de linguagem em larga escala da Alibaba, que oferece desempenho excepcional para atender a diversas necessidades de aplicação."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 é um novo modelo de linguagem de próxima geração com capacidades significativamente aprimoradas, alcançando níveis líderes da indústria em raciocínio, generalidade, agentes e multilíngue, e suporta a alternância de modos de pensamento."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Tipo de plugin MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Insira o endereço HTTP Streamable do seu servidor MCP, que não deve terminar com /sse",
|
||||
"desc": "Insira o endereço HTTP transmitível do seu servidor MCP, o modo SSE não é suportado",
|
||||
"invalid": "Por favor, insira um URL válido",
|
||||
"label": "URL do Endpoint HTTP",
|
||||
"required": "Por favor, insira o URL do serviço MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 — это новое поколение крупномасштабной языковой модели от Alibaba, обеспечивающее отличные результаты для разнообразных приложений."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 — это новое поколение масштабной языковой модели от Alibaba, которая поддерживает разнообразные потребности приложений с выдающимися показателями."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 — это новое поколение модели Qwen с значительно улучшенными возможностями, достигнувшими ведущих позиций в отрасли в области вывода, универсальности, агентов и многоязычности, а также поддерживающей переключение режимов размышления."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Тип плагина MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Введите адрес вашего MCP Server Streamable HTTP, который не заканчивается на /sse",
|
||||
"desc": "Введите адрес вашего MCP сервера Streamable HTTP, режим SSE не поддерживается",
|
||||
"invalid": "Пожалуйста, введите действительный URL-адрес",
|
||||
"label": "URL-адрес HTTP Endpoint",
|
||||
"required": "Пожалуйста, введите URL службы MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2, Alibaba'nın yeni nesil büyük ölçekli dil modelidir, mükemmel performans ile çeşitli uygulama ihtiyaçlarını destekler."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3, Alibaba'nın yeni nesil büyük ölçekli dil modelidir ve çeşitli uygulama ihtiyaçlarını mükemmel bir performansla destekler."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3, akıl yürütme, genel, Ajan ve çok dilli gibi birçok temel yetenekte endüstri lideri seviyesine ulaşan yeni nesil bir modeldir ve düşünme modu geçişini destekler."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP Eklenti Türü"
|
||||
},
|
||||
"url": {
|
||||
"desc": "MCP Sunucu Akış HTTP adresinizi girin, /sse ile bitmemelidir",
|
||||
"desc": "MCP Sunucu Akış HTTP adresinizi girin, SSE modunu desteklemez",
|
||||
"invalid": "Lütfen geçerli bir URL adresi girin",
|
||||
"label": "HTTP Endpoint URL",
|
||||
"required": "Lütfen MCP hizmet URL'sini girin"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 là mô hình ngôn ngữ quy mô lớn thế hệ mới của Alibaba, hỗ trợ các nhu cầu ứng dụng đa dạng với hiệu suất xuất sắc."
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 là mô hình ngôn ngữ quy mô lớn thế hệ mới của Alibaba, hỗ trợ nhu cầu ứng dụng đa dạng với hiệu suất xuất sắc."
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3 là một mô hình lớn thế hệ mới với khả năng vượt trội, đạt được trình độ hàng đầu trong nhiều khả năng cốt lõi như suy luận, tổng quát, đại lý và đa ngôn ngữ, đồng thời hỗ trợ chuyển đổi chế độ suy nghĩ."
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "Loại plugin MCP"
|
||||
},
|
||||
"url": {
|
||||
"desc": "Nhập địa chỉ HTTP Streamable của máy chủ MCP của bạn, không kết thúc bằng /sse",
|
||||
"desc": "Nhập địa chỉ HTTP Streamable của máy chủ MCP của bạn, không hỗ trợ chế độ SSE",
|
||||
"invalid": "Vui lòng nhập địa chỉ URL hợp lệ",
|
||||
"label": "URL Điểm cuối HTTP",
|
||||
"required": "Vui lòng nhập URL dịch vụ MCP"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 是阿里巴巴的新一代大规模语言模型,以优异的性能支持多元化的应用需求。"
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 是阿里巴巴的新一代大规模语言模型,以优异的性能支持多元化的应用需求。"
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3是一款能力大幅提升的新一代通义千问大模型,在推理、通用、Agent和多语言等多个核心能力上均达到业界领先水平,并支持思考模式切换。"
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP 插件类型"
|
||||
},
|
||||
"url": {
|
||||
"desc": "输入你的 MCP Server Streamable HTTP 地址,不会以 /sse 结尾",
|
||||
"desc": "输入你的 MCP Server Streamable HTTP 地址,不支持 SSE 模式",
|
||||
"invalid": "请输入有效的 URL 地址",
|
||||
"label": "Streamable HTTP Endpoint URL",
|
||||
"required": "请输入 MCP 服务 URL"
|
||||
|
||||
@@ -1982,6 +1982,9 @@
|
||||
"qwen2:72b": {
|
||||
"description": "Qwen2 是阿里巴巴的新一代大規模語言模型,以優異的性能支持多元化的應用需求。"
|
||||
},
|
||||
"qwen3": {
|
||||
"description": "Qwen3 是阿里巴巴的新一代大規模語言模型,以優異的性能支持多元化的應用需求。"
|
||||
},
|
||||
"qwen3-0.6b": {
|
||||
"description": "Qwen3是一款能力大幅提升的新一代通義千問大模型,在推理、通用、Agent和多語言等多個核心能力上均達到業界領先水平,並支持思考模式切換。"
|
||||
},
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
"title": "MCP 插件類型"
|
||||
},
|
||||
"url": {
|
||||
"desc": "輸入你的 MCP Server Streamable HTTP 地址,結尾不會有 /sse",
|
||||
"desc": "輸入你的 MCP 伺服器可串流的 HTTP 地址,不支援 SSE 模式",
|
||||
"invalid": "請輸入有效的 URL 地址",
|
||||
"label": "HTTP Endpoint URL",
|
||||
"required": "請輸入 MCP 服務 URL"
|
||||
|
||||
@@ -17,6 +17,7 @@ import { isDesktop } from '@/const/version';
|
||||
import { mcpService } from '@/services/mcp';
|
||||
import { useToolStore } from '@/store/tool';
|
||||
import { pluginSelectors } from '@/store/tool/selectors';
|
||||
import { electronStylish } from '@/styles/electron';
|
||||
|
||||
import ArgsInput from './ArgsInput';
|
||||
import EnvEditor from './EnvEditor';
|
||||
@@ -225,6 +226,7 @@ const MCPManifestForm = ({ form, isEditMode }: MCPManifestFormProps) => {
|
||||
/>
|
||||
<Flexbox horizontal justify={'space-between'}>
|
||||
<Button
|
||||
className={electronStylish.nodrag}
|
||||
onClick={() => {
|
||||
setIsImportModalVisible(false);
|
||||
}}
|
||||
@@ -296,7 +298,15 @@ const MCPManifestForm = ({ form, isEditMode }: MCPManifestFormProps) => {
|
||||
name={HTTP_URL_KEY}
|
||||
rules={[
|
||||
{ message: t('dev.mcp.url.required'), required: true },
|
||||
{ message: t('dev.mcp.url.invalid'), type: 'url' },
|
||||
{
|
||||
message: t('dev.mcp.url.invalid'),
|
||||
validator: async (_, value) => {
|
||||
if (!value) return true;
|
||||
|
||||
// 如果不是 URL 就会自动抛出错误
|
||||
new URL(value);
|
||||
},
|
||||
},
|
||||
]}
|
||||
tag={'url'}
|
||||
>
|
||||
|
||||
@@ -111,7 +111,7 @@ export default {
|
||||
title: 'MCP 插件类型',
|
||||
},
|
||||
url: {
|
||||
desc: '输入你的 MCP Server Streamable HTTP 地址,不会以 /sse 结尾',
|
||||
desc: '输入你的 MCP Server Streamable HTTP 地址,不支持 SSE 模式',
|
||||
invalid: '请输入有效的 URL 地址',
|
||||
label: 'Streamable HTTP Endpoint URL',
|
||||
required: '请输入 MCP 服务 URL',
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
LocalReadFileState,
|
||||
LocalReadFilesState,
|
||||
LocalRenameFileState,
|
||||
} from '@/tools/local-files/type';
|
||||
} from '@/tools/local-system/type';
|
||||
|
||||
export interface LocalFileAction {
|
||||
internal_triggerLocalFileToolCalling: <T = any>(
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@ import { LobeBuiltinTool } from '@/types/tool';
|
||||
|
||||
import { ArtifactsManifest } from './artifacts';
|
||||
import { DalleManifest } from './dalle';
|
||||
import { LocalFilesManifest } from './local-files';
|
||||
import { LocalSystemManifest } from './local-system';
|
||||
import { WebBrowsingManifest } from './web-browsing';
|
||||
|
||||
export const builtinTools: LobeBuiltinTool[] = [
|
||||
@@ -19,8 +19,8 @@ export const builtinTools: LobeBuiltinTool[] = [
|
||||
},
|
||||
{
|
||||
hidden: !isDesktop,
|
||||
identifier: LocalFilesManifest.identifier,
|
||||
manifest: LocalFilesManifest,
|
||||
identifier: LocalSystemManifest.identifier,
|
||||
manifest: LocalSystemManifest,
|
||||
type: 'builtin',
|
||||
},
|
||||
{
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { Flexbox } from 'react-layout-kit';
|
||||
|
||||
import { useChatStore } from '@/store/chat';
|
||||
import { chatToolSelectors } from '@/store/chat/selectors';
|
||||
import FileItem from '@/tools/local-files/components/FileItem';
|
||||
import FileItem from '@/tools/local-system/components/FileItem';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
interface SearchFilesProps {
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { ListLocalFileParams } from '@lobechat/electron-client-ipc';
|
||||
import React, { memo } from 'react';
|
||||
|
||||
import { LocalFolder } from '@/features/LocalFile';
|
||||
import { LocalFileListState } from '@/tools/local-files/type';
|
||||
import { LocalFileListState } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
import SearchResult from './Result';
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { memo } from 'react';
|
||||
|
||||
import { useChatStore } from '@/store/chat';
|
||||
import { chatToolSelectors } from '@/store/chat/slices/builtinTool/selectors';
|
||||
import { LocalReadFileState } from '@/tools/local-files/type';
|
||||
import { LocalReadFileState } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
import ReadFileSkeleton from './ReadFileSkeleton';
|
||||
+1
-1
@@ -7,7 +7,7 @@ import React, { memo } from 'react';
|
||||
import { Flexbox } from 'react-layout-kit';
|
||||
|
||||
import { LocalFile } from '@/features/LocalFile';
|
||||
import { LocalReadFileState } from '@/tools/local-files/type';
|
||||
import { LocalReadFileState } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
const useStyles = createStyles(({ css, token }) => ({
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { Terminal } from '@xterm/xterm';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import { memo, useEffect, useRef } from 'react';
|
||||
|
||||
import { LocalReadFileState } from '@/tools/local-files/type';
|
||||
import { LocalReadFileState } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
interface RunCommandProps {
|
||||
+2
-2
@@ -4,8 +4,8 @@ import { Flexbox } from 'react-layout-kit';
|
||||
|
||||
import { useChatStore } from '@/store/chat';
|
||||
import { chatToolSelectors } from '@/store/chat/selectors';
|
||||
import FileItem from '@/tools/local-files/components/FileItem';
|
||||
import { FileResult } from '@/tools/local-files/type';
|
||||
import FileItem from '@/tools/local-system/components/FileItem';
|
||||
import { FileResult } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
interface SearchFilesProps {
|
||||
+1
-1
@@ -7,7 +7,7 @@ import { Flexbox } from 'react-layout-kit';
|
||||
|
||||
import { useChatStore } from '@/store/chat';
|
||||
import { chatToolSelectors } from '@/store/chat/selectors';
|
||||
import { LocalFileSearchState } from '@/tools/local-files/type';
|
||||
import { LocalFileSearchState } from '@/tools/local-system/type';
|
||||
|
||||
import SearchView from './SearchView';
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { LocalSearchFilesParams } from '@lobechat/electron-client-ipc';
|
||||
import { memo } from 'react';
|
||||
|
||||
import { LocalFileSearchState } from '@/tools/local-files/type';
|
||||
import { LocalFileSearchState } from '@/tools/local-system/type';
|
||||
import { ChatMessagePluginError } from '@/types/message';
|
||||
|
||||
import SearchResult from './Result';
|
||||
@@ -1,7 +1,7 @@
|
||||
import { LocalFileItem } from '@lobechat/electron-client-ipc';
|
||||
import { memo } from 'react';
|
||||
import { LocalSystemApiName } from 'src/tools/local-system';
|
||||
|
||||
import { LocalFilesApiName } from '@/tools/local-files';
|
||||
import { BuiltinRenderProps } from '@/types/tool';
|
||||
|
||||
import ListFiles from './ListFiles';
|
||||
@@ -11,11 +11,11 @@ import SearchFiles from './SearchFiles';
|
||||
import WriteFile from './WriteFile';
|
||||
|
||||
const RenderMap = {
|
||||
[LocalFilesApiName.searchLocalFiles]: SearchFiles,
|
||||
[LocalFilesApiName.listLocalFiles]: ListFiles,
|
||||
[LocalFilesApiName.readLocalFile]: ReadLocalFile,
|
||||
[LocalFilesApiName.renameLocalFile]: RenameLocalFile,
|
||||
[LocalFilesApiName.writeLocalFile]: WriteFile,
|
||||
[LocalSystemApiName.searchLocalFiles]: SearchFiles,
|
||||
[LocalSystemApiName.listLocalFiles]: ListFiles,
|
||||
[LocalSystemApiName.readLocalFile]: ReadLocalFile,
|
||||
[LocalSystemApiName.renameLocalFile]: RenameLocalFile,
|
||||
[LocalSystemApiName.writeLocalFile]: WriteFile,
|
||||
};
|
||||
|
||||
const LocalFilesRender = memo<BuiltinRenderProps<LocalFileItem[]>>(
|
||||
@@ -2,7 +2,7 @@ import { BuiltinToolManifest } from '@/types/tool';
|
||||
|
||||
import { systemPrompt } from './systemRole';
|
||||
|
||||
export const LocalFilesApiName = {
|
||||
export const LocalSystemApiName = {
|
||||
listLocalFiles: 'listLocalFiles',
|
||||
moveLocalFiles: 'moveLocalFiles',
|
||||
readLocalFile: 'readLocalFile',
|
||||
@@ -11,12 +11,12 @@ export const LocalFilesApiName = {
|
||||
writeLocalFile: 'writeLocalFile',
|
||||
};
|
||||
|
||||
export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
export const LocalSystemManifest: BuiltinToolManifest = {
|
||||
api: [
|
||||
{
|
||||
description:
|
||||
'List files and folders in a specified directory. Input should be a path. Output is a JSON array of file/folder names.',
|
||||
name: LocalFilesApiName.listLocalFiles,
|
||||
name: LocalSystemApiName.listLocalFiles,
|
||||
parameters: {
|
||||
properties: {
|
||||
path: {
|
||||
@@ -31,7 +31,7 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
{
|
||||
description:
|
||||
'Read the content of a specific file. Input should be the file path. Output is the file content as a string.',
|
||||
name: LocalFilesApiName.readLocalFile,
|
||||
name: LocalSystemApiName.readLocalFile,
|
||||
parameters: {
|
||||
properties: {
|
||||
loc: {
|
||||
@@ -54,7 +54,7 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
{
|
||||
description:
|
||||
'Search for files within the workspace based on a query string and optional filter options. Input should include the search query and any filter options. Output is a JSON array of matching file paths.',
|
||||
name: LocalFilesApiName.searchLocalFiles,
|
||||
name: LocalSystemApiName.searchLocalFiles,
|
||||
parameters: {
|
||||
properties: {
|
||||
contentContains: {
|
||||
@@ -130,7 +130,7 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
{
|
||||
description:
|
||||
'Moves or renames multiple files/directories. Input is an array of objects, each containing an oldPath and a newPath.',
|
||||
name: LocalFilesApiName.moveLocalFiles,
|
||||
name: LocalSystemApiName.moveLocalFiles,
|
||||
parameters: {
|
||||
properties: {
|
||||
items: {
|
||||
@@ -160,7 +160,7 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
{
|
||||
description:
|
||||
'Rename a file or folder in its current location. Input should be the current full path and the new name.',
|
||||
name: LocalFilesApiName.renameLocalFile,
|
||||
name: LocalSystemApiName.renameLocalFile,
|
||||
parameters: {
|
||||
properties: {
|
||||
newName: {
|
||||
@@ -179,7 +179,7 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
{
|
||||
description:
|
||||
'Write content to a specific file. Input should be the file path and content. Overwrites existing file or creates a new one.',
|
||||
name: LocalFilesApiName.writeLocalFile,
|
||||
name: LocalSystemApiName.writeLocalFile,
|
||||
parameters: {
|
||||
properties: {
|
||||
content: {
|
||||
@@ -196,10 +196,10 @@ export const LocalFilesManifest: BuiltinToolManifest = {
|
||||
},
|
||||
},
|
||||
],
|
||||
identifier: 'lobe-local-files',
|
||||
identifier: 'lobe-local-system',
|
||||
meta: {
|
||||
avatar: '📁',
|
||||
title: 'Local Files',
|
||||
title: 'Local System',
|
||||
},
|
||||
systemRole: systemPrompt,
|
||||
type: 'builtin',
|
||||
@@ -2,13 +2,13 @@ import { BuiltinRender } from '@/types/tool';
|
||||
|
||||
import { DalleManifest } from './dalle';
|
||||
import DalleRender from './dalle/Render';
|
||||
import { LocalFilesManifest } from './local-files';
|
||||
import LocalFilesRender from './local-files/Render';
|
||||
import { LocalSystemManifest } from './local-system';
|
||||
import LocalFilesRender from './local-system/Render';
|
||||
import { WebBrowsingManifest } from './web-browsing';
|
||||
import WebBrowsing from './web-browsing/Render';
|
||||
|
||||
export const BuiltinToolsRenders: Record<string, BuiltinRender> = {
|
||||
[DalleManifest.identifier]: DalleRender as BuiltinRender,
|
||||
[WebBrowsingManifest.identifier]: WebBrowsing as BuiltinRender,
|
||||
[LocalFilesManifest.identifier]: LocalFilesRender as BuiltinRender,
|
||||
[LocalSystemManifest.identifier]: LocalFilesRender as BuiltinRender,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user