"parameters": { "type": "object" "properties": { "city": { "description":...
以前用户需要在Prompt里加一堆描述才能支持Agent,而现在就简单多了,只要在API请求的时候,传入一个functions参数即可。functions参数实际上就类似于用户要指定的Agent。注意,这里可以是不止一个function,function是一个对象,还可以加上名称(name)、描述(description)、参数(parameters)等等。然后,返回的结果就包含...
.Produces<List<string>>().WithOpenApi(operation=>{operation.OperationId="getTodos";operation.Summary="Delete a todo from the list";operation.Parameters[0].Description="The name of the user.";returnoperation;});app.MapGet("/logo.png",()=>Results.File("logo.png",contentType:"image/png"))...
每个插件都需要一个 ai-plugin.json 文件,该文件需要托管在API的域中。例如,一家名为 example.com 的公司将通过https://example.com域访问插件JSON文件,因为这是他们的API托管的地方。 当通过ChatGPT UI安装插件时,ChatGPT会查找位于 /.well-known/ai-plugin.json 的文件,以便和插件进行连接。如果找不到文件,...
编写ai-plugin.json元数据文件 每个插件都需要一个 ai-plugin.json 文件,该文件需要托管在API的域中。例如,一家名为 http://example.com 的公司将通过 https://example.com 域访问插件JSON文件,因为这是他们的API托管的地方。 当通过ChatGPT UI安装插件时,ChatGPT会查找位于 /.well-known/ai-plugin.json 的...
Node.js client for the officialChatGPTAPI. Intro This package is a Node.js wrapper aroundChatGPTbyOpenAI. TS batteries included. ✨ Updates April 10, 2023 This package nowfully supports GPT-4! 🔥 We also just released aTypeScript chatgpt-plugin packagewhich contains helpers and examples to...
publicabstractclassPluginAbstract<RextendsPluginParam, T> { privateClass<?> R; privateString name; privateString function; privateString description; privateList<Arg> args; privateList<String> required; privateParameters parameters; publicPluginAbstract(Class<?> r){ ...
See the auto-generated docs for more info on methods and parameters.DemosMost of the demos use ChatGPTAPI. It should be pretty easy to convert them to use ChatGPTUnofficialProxyAPI if you'd rather use that approach. The only thing that needs to change is how you initialize the api with...
以前用户需要在Prompt里加一堆描述才能支持Agent,而现在就简单多了,只要在API请求的时候,传入一个functions参数即可。 functions参数实际上就类似于用户要指定的Agent。 注意,这里可以是不止一个function,function是一个对象,还可以加上名称(name)、描述(description)、参数(parameters)等等。
0.0/your-plugin-1.0.0.zip 这将从GitHub仓库下载并安装插件。你需要将your-repo和your-plugin替换为实际的仓库和插件名称,将v1.0.0替换为实际的版本号。二、使用插件安装完插件后,你就可以在Elasticsearch查询中使用ChatGPT了。以下是一个示例查询,它使用ChatGPT对索引中的文档进行分类: { "query": { "chatgpt...