From 61a6bb9c2c9166583a1e47c05b3c84f0948f571f Mon Sep 17 00:00:00 2001 From: yym68686 Date: Wed, 28 Aug 2024 02:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20Docs:=20update=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4967050f..6d483724 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,14 @@ your_webhook_domain.com { By default, DuckDuckGo search is provided. The official API for Google search needs to be applied for by the user. It can provide real-time information that GPT could not answer before, such as today's trending topics on Weibo, today's weather in a specific location, and the progress of a certain person or news event. +- Why can't I use the search function even though I added the Google search API? + +There are two possibilities: + +1. Only Large Language Models (LLMs) APIs that support tools use can utilize the search function. Currently, this project only supports the OpenAI and Claude series models' APIs for the search function. Although the Gemini series models' API supports tool use, the developers haven't had time to adapt it yet, but they will complete the adaptation for the Gemini API soon. + +2. If you used the APIs of Claude and OpenAI but are unable to use the search function, it might be because the search function is not enabled. You can check whether the search function is enabled by clicking on preferences through the `/info` command. If you still cannot search successfully, please contact the developer. + - How do I switch models? You can switch between GPT3.5/4/4o, and other models using the "/info" command in the chat window. @@ -373,12 +381,6 @@ Koyeb's free service can be a bit unstable, so deployment failures are pretty co If you deployed using `docker-compose.yml`, do not add quotes around the value of `CUSTOM_MODELS`. Incorrect usage: `CUSTOM_MODELS="gpt-4o,-gpt-3.5"`, otherwise it will cause environment variable parsing errors, resulting in the default model name reappearing. The incorrect way will be parsed as deleting the `gpt-3.5"` model, which will cause the default model name `gpt-3.5` not to be deleted. The correct way to write it is: `CUSTOM_MODELS=gpt-4o,-gpt-3.5`. -- Why can't I use the search function even though I added the API? - -Only APIs that support tool use can utilize the search function. Currently, this project only supports the OpenAI and Claude series models' APIs for the search function. Although the Gemini series models' API supports tool use, the developers haven't had time to adapt it yet, but they will complete the adaptation for the Gemini API soon. - -If you used the APIs of Claude and OpenAI but are unable to use the search function, it might be because the search function is not enabled. You can check whether the search function is enabled by clicking on preferences through the `/info` command. If you still cannot search successfully, please contact the developer. - ## References https://core.telegram.org/bots/api