From 1fa160fa1a251071965d222efc93e8ffc66ae32e Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Sat, 6 Jul 2024 01:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20improve=20tools=20calling?= =?UTF-8?q?=20error=20feedback=20when=20arguments=20are=20not=20correctly?= =?UTF-8?q?=20(#3150)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update docs * fix: fix plugin arguments issue * Update error.ts * 🚨 ci: fix lint * ✅ test: fix test * chore: update locale --- docs/usage/tools-calling/anthropic.zh-CN.mdx | 932 ++---------------- locales/ar/error.json | 1 + locales/bg-BG/error.json | 1 + locales/de-DE/error.json | 1 + locales/en-US/error.json | 1 + locales/es-ES/error.json | 1 + locales/fr-FR/error.json | 1 + locales/it-IT/error.json | 1 + locales/ja-JP/error.json | 1 + locales/ko-KR/error.json | 1 + locales/nl-NL/error.json | 1 + locales/pl-PL/error.json | 1 + locales/pt-BR/error.json | 1 + locales/ru-RU/error.json | 1 + locales/tr-TR/error.json | 1 + locales/vi-VN/error.json | 1 + locales/zh-CN/error.json | 1 + locales/zh-TW/error.json | 1 + package.json | 2 +- .../Messages/Tool/Inspector/style.ts | 3 +- src/locales/default/error.ts | 3 + src/store/chat/slices/plugin/action.test.ts | 60 +- src/store/chat/slices/plugin/action.ts | 36 +- src/store/tool/slices/builtin/action.ts | 14 +- src/types/fetch.ts | 5 +- 25 files changed, 194 insertions(+), 878 deletions(-) diff --git a/docs/usage/tools-calling/anthropic.zh-CN.mdx b/docs/usage/tools-calling/anthropic.zh-CN.mdx index ade1e484017c..baea4cba2ebf 100644 --- a/docs/usage/tools-calling/anthropic.zh-CN.mdx +++ b/docs/usage/tools-calling/anthropic.zh-CN.mdx @@ -1,5 +1,5 @@ --- -title: Anthropic Claude 系列 Tool Calling 评测 +title: Anthropic Claude 系列 Tools Calling 评测 description: >- 使用 LobeChat 测试 Anthropic Claude 系列模型(Claude 3.5 sonnet / Claude 3 Opus / Claude 3 haiku) 的工具调用(Function Calling)能力,并展现评测结果 @@ -11,7 +11,7 @@ tags: - 插件 --- -# Anthropic Claude 系列 Tool Calling +# Anthropic Claude 系列 Tools Calling ## Claude 3.5 Sonnet @@ -22,127 +22,15 @@ tags: