Skip to content

Commit

Permalink
🐛 fix: fix anthropic parallel tools calling (lobehub#3010)
Browse files Browse the repository at this point in the history
* wip

* 💚 ci: fix lint

* ✅ test: fix test

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs

* 📝 docs: update docs
  • Loading branch information
arvinxx authored Jun 24, 2024
1 parent 6ca6389 commit 1d891ac
Show file tree
Hide file tree
Showing 42 changed files with 1,293 additions and 53 deletions.
2 changes: 1 addition & 1 deletion docs/usage/providers/01ai.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Zero One AI in LobeChat
title: Using Zero One AI API Key in LobeChat
description: >-
Learn how to integrate and use Zero One AI in LobeChat with step-by-step
instructions. Obtain an API key, configure Zero One AI, and start
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/01ai.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 01.AI 零一万物
title: 在 LobeChat 中使用 01.AI 零一万物 API Key
description: >-
学习如何在 LobeChat 中配置并使用 01.AI 零一万物提供的 AI 模型进行对话。获取 API 密钥、填入设置项、选择模型,开始与 AI
助手交流。
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/anthropic.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Anthropic Claude in LobeChat
title: Using Anthropic Claude API Key in LobeChat
description: >-
Learn how to integrate Anthropic Claude API in LobeChat to enhance your AI
assistant capabilities. Support Claude 3.5 sonnet / Claude 3 Opus / Claude 3
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/anthropic.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Anthropic Claude
title: 在 LobeChat 中使用 Anthropic Claude API Key
description: >-
学习如何在 LobeChat 中配置和使用 Anthropic Claude API, Claude 3.5 sonnet / Claude 3 Opus
/ Claude 3 haiku
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/azure.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Azure OpenAI in LobeChat
title: Using Azure OpenAI API Key in LobeChat
description: >-
Learn how to integrate and configure Azure OpenAI in LobeChat to enhance your
AI assistant capabilities. Follow these steps to obtain the API key, configure
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/azure.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Azure OpenAI
title: 在 LobeChat 中使用 Azure OpenAI API Key
description: 学习如何在 LobeChat 中配置和使用 Azure OpenAI 模型进行对话,包括获取 API 密钥和选择模型。
tags:
- Azure OpenAI
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/bedrock.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Amazon Bedrock in LobeChat
title: Using Amazon Bedrock API Key in LobeChat
description: >-
Learn how to integrate Amazon Bedrock models into LobeChat for AI-powered
conversations. Follow these steps to grant access, obtain API keys, and
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/bedrock.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Amazon Bedrock
title: 在 LobeChat 中使用 Amazon Bedrock API Key
description: 学习如何在 LobeChat 中配置和使用 Amazon Bedrock,一个完全托管的基础模型API服务,以便开始对话。
tags:
- Amazon Bedrock
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/deepseek.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using DeepSeek in LobeChat
title: Using DeepSeek API Key in LobeChat
description: >-
Learn how to use DeepSeek-V2 in LobeChat, obtain API keys. Get started with
DeepSeek integration now!
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/deepseek.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 DeepSeek
title: 在 LobeChat 中使用 DeepSeek API Key
description: 学习如何在 LobeChat 中配置和使用 DeepSeek 语言模型,获取 API 密钥并开始对话。
tags:
- LobeChat
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/gemini.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Google Gemini in LobeChat
title: Using Google Gemini API Key in LobeChat
description: >-
Learn how to integrate and utilize Google Gemini AI in LobeChat to enhance
your conversational experience. Follow these steps to configure Google Gemini
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/gemini.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Google Gemini
title: 在 LobeChat 中使用 Google Gemini API Key
description: 本文将指导你如何在 LobeChat 中配置并使用 Google Gemini,一个由 Google AI 创建的强大语言模型。
tags:
- Google Gemini
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/groq.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Groq in LobeChat
title: Using Groq API Key in LobeChat
description: >-
Learn how to obtain GroqCloud API keys and configure Groq in LobeChat for
optimal performance.
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/groq.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Groq
title: 在 LobeChat 中使用 Groq API Key
description: 了解如何获取 GroqCloud API Key,并在 LobeChat 中配置 Groq,体验 Groq 强大的性能。
tags:
- LLAMA3
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/minimax.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Minimax in LobeChat
title: Using Minimax API Key in LobeChat
description: >-
Learn how to use MiniMax in LobeChat to enhance AI conversations. Obtain
MiniMax API key, configure MiniMax in LobeChat settings, and select a model
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/minimax.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Minimax
title: 在 LobeChat 中使用 Minimax API Key
description: >-
学习如何在 LobeChat 中配置并使用 MiniMax 智能模型进行对话。获取 MiniMax API 密钥、配置步骤详解,开始与 MiniMax
模型交互。
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/mistral.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Mistral AI in LobeChat
title: Using Mistral AI API Key in LobeChat
description: >-
Learn how to integrate Mistral AI into LobeChat for enhanced conversational
experiences. Follow the steps to configure Mistral AI and start using its
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/mistral.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Mistral AI
title: 在 LobeChat 中使用 Mistral AI API Key
description: 学习如何在 LobeChat 中配置并使用 Mistral AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
tags:
- Web UI
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/moonshot.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Moonshot AI in LobeChat
title: Using Moonshot AI API Key in LobeChat
description: >-
Learn how to integrate Moonshot AI into LobeChat for AI-powered conversations.
Follow the steps to get the API key, configure Moonshot AI, and start engaging
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/moonshot.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Moonshot AI
title: 在 LobeChat 中使用 Moonshot(月之暗面) AI API Key
description: 学习如何在 LobeChat 中配置和使用 Moonshot AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
tags:
- Moonshot AI
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/openai.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using OpenAI in LobeChat
title: Using OpenAI API Key in LobeChat
description: >-
Learn how to integrate OpenAI API Key in LobeChat. Support GPT-4o /
GPT-4-turbo / GPT-4-vision
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/openai.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 OpenAI
title: 在 LobeChat 中使用 OpenAI API Key
description: 学习如何在 LobeChat 中配置和使用 OpenAI API Key,支持 GPT-4o / GPT-4-turbo / GPT-4-vision
tags:
- ChatGPT
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/openrouter.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using OpenRouter in LobeChat
title: Using OpenRouter API Key in LobeChat
description: >-
Learn how to integrate and utilize OpenRouter's language model APIs in
LobeChat. Follow these steps to register, create an API key, recharge credit,
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/providers/openrouter.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 在 LobeChat 中使用 OpenRouter
description: 学习如何在 LobeChat 中注册、创建 API 密钥、充值信用额度并配置 OpenRouter,以便开始使用多种优秀大语言模型 API。
title: 在 LobeChat 中使用 OpenRouter API Key
description: 学习如何在 LobeChat 中注册、创建 API Key、充值信用额度并配置 OpenRouter,以便开始使用多种优秀大语言模型 API。
tags:
- OpenRouter
- API Key
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/perplexity.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Perplexity AI in LobeChat
title: Using Perplexity AI API Key in LobeChat
description: >-
Learn how to integrate and use Perplexity AI in LobeChat to enhance your AI
assistant's capabilities.
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/perplexity.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用 Perplexity AI
title: 在 LobeChat 中使用 Perplexity AI API Key
description: 学习如何在 LobeChat 中配置和使用 Perplexity AI,获取 API 密钥并选择适合的语言模型开始对话。
tags:
- Perplexity AI
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/qwen.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Tongyi Qianwen in LobeChat
title: Using Qwen2 API Key in LobeChat
description: >-
Learn how to integrate and utilize Tongyi Qianwen, a powerful language model
by Alibaba Cloud, in LobeChat for various tasks. Follow the steps to activate
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/qwen.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 在 LobeChat 中使用通义千问
title: 在 LobeChat 中使用通义千问 API Key
description: 学习如何在 LobeChat 中配置和使用阿里云的通义千问模型,提供强大的自然语言理解和生成能力。
tags:
- LobeChat
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/stepfun.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Stepfun in LobeChat
title: Using Stepfun API Key in LobeChat
description: >-
Learn how to integrate Stepfun AI models into LobeChat for engaging
conversations. Obtain Stepfun API key, configure Stepfun in LobeChat settings,
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/providers/stepfun.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 在 LobeChat 中使用 Stepfun Stepfun 阶跃星辰
description: 学习如何在 LobeChat 中配置和使用 Stepfun 阶跃星辰的人工智能模型,包括获取 API 密钥和选择模型开始对话
title: 在 LobeChat 中使用 Stepfun 阶跃星辰 API Key
description: 学习如何在 LobeChat 中配置和使用 Stepfun 阶跃星辰的人工智能模型,包括获取 API Key 和选择模型开始对话
tags:
- Stepfun 阶跃星辰
- API key
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/togetherai.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Together AI in LobeChat
title: Using Together AI in LobeChat API Key
description: >-
Learn how to integrate Together AI into LobeChat, obtain the API key,
configure settings, and start conversations with AI models.
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/providers/togetherai.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 在 LobeChat 中使用 Together AI
description: 学习如何在 LobeChat 中配置和使用 Together AI 的API密钥,以便开始对话和交互。
title: 在 LobeChat 中使用 Together AI API Key
description: 学习如何在 LobeChat 中配置和使用 Together AI 的API Key,以便开始对话和交互。
tags:
- LobeChat
- Together AI
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/providers/zhipu.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Using Zhipu ChatGLM in LobeChat
title: Using Zhipu ChatGLM API Key in LobeChat
description: >-
Learn how to integrate and utilize Zhipu AI models in LobeChat for enhanced
conversational experiences. Obtain the API key, configure settings, and start
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/providers/zhipu.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 在 LobeChat 中使用智谱 ChatGLM
description: 学习如何在 LobeChat 中配置和使用智谱AI的API密钥,开始与智谱AI提供的模型进行对话。
title: 在 LobeChat 中使用智谱 ChatGLM API Key
description: 学习如何在 LobeChat 中配置和使用智谱AI的 API Key,开始与智谱AI提供的模型进行对话。
tags:
- 智谱AI
- ChatGLM
Expand Down
16 changes: 15 additions & 1 deletion docs/usage/tools-calling.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 基于 LobeChat 测试主流支持工具调用(Tool Calling)
tags:
- Tools Calling
- Benchmark
- Function Calling
- Function Calling 评测
- 工具调用
- LobeChat 插件
---
Expand Down Expand Up @@ -238,4 +238,18 @@ Create images from a text-only prompt.

## 评测结果

各模型的评测细节可以点击查看:

<Cards>
<Card href={'/docs/usage/tools-calling/openai'} title={'OpenAI GPT 系列'} />
<Card href={'/docs/usage/tools-calling/anthropic'} title={'Anthropic Claude 系列'} />
<Card href={'/docs/usage/tools-calling/google'} title={'【TODO】Google Gemini 系列'} />
<Card
href={'/docs/usage/tools-calling/groq'}
title={'【TODO】Groq 部署的开源模型(Llama 3/Qwen2/Mistral 等)'}
/>
</Cards>

### 结果汇总

TODO
Loading

0 comments on commit 1d891ac

Please sign in to comment.