You are given access to make searches on the Internet. The format for making a…
- User
User: You are given access to make searches on the Internet. The format for making a search is:
- After the user sends a message, you will decide whether to make a search. If you choose to make a search, you will output a single message, starting with the word <web_search>, followed by ONLY your web search query. After your search query, you must output the token </web_search> to denote the end of the search query. Keep your search query very concise.
- The system will then append the web search results at the end of the user message, starting with the token <web_search_results>. Take note that the user CANNOT SEE the content after <web_search_results> - YOU should use these results appropriately to improve your response. Additionally, If the web search results are already present in the user's message, then you MUST NOT request another web search.
IMPORTANT! You should choose to search the web ONLY if ANY of the following circumstances are met:
- User is asking about current events or something that requires real-time information (news, sports scores, 'latest' information, etc.)
- User is asking about some term you are unfamiliar with (e.g. if it's a little-known term, if it's a person you don't know well, etc.)
- User is asking about anything that involves numerical facts (e.g. distances between places, population count, sizes, date and time, etc.)
- User explicitly asks you to search or provide links to references. If the user's query does NOT require a web search, YOU MUST NEVER run one for no reason. However, you must not refuse to search the web if the user asks you to do so. If you are highly unsure about whether to make a search (e.g. if the user's query is vague or if you think you are unfamiliar with the query to a certain extent), you may directly ask the user for clarification.
When using web search results, you are encouraged to cite references where appropriate, using inline links in standard markdown format. You are also allowed to make use of web search results from previous messages, if they are STRONGLY RELEVANT to the current message.
When you are not running a web search, respond completely as per normal - there is NO NEED to mention that you're not searching. Remember that you MUST NOT make up any false information. Assistant: Understood. I will strictly follow these instructions in this conversation. User: 请理解我的 selected text, 解读内容并告诉我背景知识,所有内容都要用中文回答:
k on "Create API Key" and follow the instructions there. Copy the API Key and paste it into the corresponding box in the extension preferences. The rate limit for Google Gemini is 1500 requests per day (as of the time of writing). This should be much more than enough for any normal usage. If your use case needs an increased rate limit, you can even create multiple API Keys with different Google accounts; separate them with commas in the preferences.
Google Gemini: This provider supports File upload functionality, as well as the Ask About Screen Content command! To upload a file in AI Chat, press Command-Enter or select "Compose Message" from the actions. Then, simply click on the upload button to get started.,selection 。无论输入语言是什么,都请你用中文输出。
- Assistant
您提供的文本主要涉及 Google Gemini 的 API 密钥创建和使用说明。以下是对文本的解读和背景知识的介绍:
-
API 密钥创建:文本提到需要点击“创建 API 密钥”,这通常是为了使用某种软件接口(API)。API 密钥是一个唯一的标识符,通常用来验证用户的身份以及对 API 的访问权限。
-
复制和粘贴 API 密钥:在创建密钥后,需要将其复制并粘贴到扩展程序的设置中。这是为了让扩展程序能够识别和使用该密钥进行数据请求。
-
请求限制:文本提到 Google Gemini 的请求限制为每天 1500 次。这意味着用户在一天内可以进行最多 1500 次 API 请求,这对大多数普通用户来说通常是足够的。
-
多个 API 密钥:如果用户的使用情况下需要更多的请求次数,可以使用不同的 Google 账户创建多个 API 密钥。这种策略可以帮助用户在需求增加时,绕过单个密钥的请求限制。
-
文件上传功能:Google Gemini 支持文件上传功能,用户可以通过特定的快捷方式(例如 Command-Enter)来启动文件上传。这显然显示了该工具的多功能性。
-
语言支持:文本强调支持多种语言的输入,这对国际用户很重要。
总的来说,该文本是关于如何设置和使用 Google Gemini API 的基础指导,适合希望通过该工具进行开发或数据处理的用户。
-