From 6e17029ef2cc4baddb26d704046c202f017c2241 Mon Sep 17 00:00:00 2001 From: Barry Wang <33831597+GithuBarry@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:19:17 -0400 Subject: [PATCH] Update manifest.json --- public/manifest.json | 53 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index b3432c2..efa32f4 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,15 +1,52 @@ { - "$schema": "../node_modules/@lobehub/chat-plugin-sdk/schema.json", - "api": [], - "author": "GithuBarry", + "author": "Barry", "homepage": "https://github.com/GithuBarry/chat-plugin-search-engine", "identifier": "search-engine-serper", + "api": [ + { + "name": "searchGoogle", + "description": "Search Google and return top 10 results", + "url": "https://google.serper.dev/search", + "parameters": { + "type": "object", + "required": [ + "q" + ], + "properties": { + "q": { + "type": "string", + "example": "今天吃什么" + }, + "gl": { + "type": "string", + "description": "Google Geo location parameter", + "example": "cn" + }, + "hl": { + "type": "string", + "description": "Google Geo locale parameter", + "example": "zh-cn" + } + } + } + } + ], "meta": { "avatar": "🔍", "tags": ["web", "search"], - "title": "Search Engine Serper", - "description": "Query search engine to get information" + "title": "Search Google via Serper", + "description": "Google search engine via Serper.dev free API (2500x🆓/month)" }, - "openapi": "https://raw.githubusercontent.com/GithuBarry/chat-plugin-search-engine/main/public/openapi.json", - "version": "1" -} + "settings": { + "type": "object", + "required": ["X-API-KEY"], + "properties": { + "X-API-KEY": { + "title": "Serper API Key", + "description": "The API key for authentication with Serper API", + "type": "string", + "format": "password" + } + } + } +} \ No newline at end of file