C#调用openAI的APi接口实现窗口聊天功能

上传者: sunnyrainflower | 上传时间: 2023-05-18 15:09:44 | 文件大小: 1.1MB | 文件类型: ZIP
c#
.netframework6.0 使用Betalgo.OpenAI.GPT3库 实现从textBox1输入问题,点击发送按钮,提出的问题和结果显示到listBox1窗口 需要注意的是需要自己注册获得openAI的密钥,以及代理地址,否则无法访问获得结果

文件下载

资源详情

[{"title":"( 57 个子文件 1.1MB ) C#调用openAI的APi接口实现窗口聊天功能","children":[{"title":".vs","children":[{"title":"ProjectEvaluation","children":[{"title":"chattogpt.metadata.v2 <span style='color:#111;'> 141.20KB </span>","children":null,"spread":false},{"title":"chattogpt.projects.v2 <span style='color:#111;'> 119.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"ChatToGPT","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache.v2 <span style='color:#111;'> 90.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"v17","children":[{"title":".futdcache.v1 <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 38.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"FileContentIndex","children":[{"title":"read.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"7329c82a-238a-4c8f-9717-0d2f095889d4.vsidx <span style='color:#111;'> 20.21KB </span>","children":null,"spread":false},{"title":"75a5f8d7-e161-4ab6-8836-a241bb6a61d1.vsidx <span style='color:#111;'> 10.79KB </span>","children":null,"spread":false},{"title":"merges","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"ChatToGPT.sln <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"ChatToGPT","children":[{"title":"Form1.Designer.cs <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.user <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"ChatToGPT.csproj.nuget.g.targets <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.nuget.g.props <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"project.assets.json <span style='color:#111;'> 24.96KB </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.nuget.dgspec.json <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"net6.0-windows","children":[{"title":"ChatToGPT.genruntimeconfig.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"ChatToGPT.assets.cache <span style='color:#111;'> 7.24KB </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.GenerateResource.cache <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"ChatToGPT.designer.runtimeconfig.json <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"ChatToGPT.GeneratedMSBuildEditorConfig.editorconfig <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"ChatToGPT.pdb <span style='color:#111;'> 14.21KB </span>","children":null,"spread":false},{"title":"refint","children":[{"title":"ChatToGPT.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"ChatToGPT.csproj.AssemblyReference.cache <span style='color:#111;'> 109.82KB </span>","children":null,"spread":false},{"title":"ChatToGPT.AssemblyInfoInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"ChatToGPT.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"apphost.exe <span style='color:#111;'> 144.50KB </span>","children":null,"spread":false},{"title":".NETCoreApp,Version=v6.0.AssemblyAttributes.cs <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.BuildWithSkipAnalyzers <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ChatToGPT.GlobalUsings.g.cs <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ChatToGPT.AssemblyInfo.cs <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ChatToGPT.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"ref","children":[{"title":"ChatToGPT.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"ChatToGPT.designer.deps.json <span style='color:#111;'> 10.20KB </span>","children":null,"spread":false},{"title":"ChatToGPT.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"project.nuget.cache <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"net6.0-windows","children":[{"title":"ChatToGPT.exe <span style='color:#111;'> 144.50KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.DependencyInjection.dll <span style='color:#111;'> 79.63KB </span>","children":null,"spread":false},{"title":"OpenAI.GPT3.dll <span style='color:#111;'> 1.59MB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Configuration.Binder.dll <span style='color:#111;'> 33.13KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Primitives.dll <span style='color:#111;'> 39.11KB </span>","children":null,"spread":false},{"title":"ChatToGPT.pdb <span style='color:#111;'> 14.21KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.DependencyInjection.Abstractions.dll <span style='color:#111;'> 42.61KB </span>","children":null,"spread":false},{"title":"ChatToGPT.runtimeconfig.json <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Options.ConfigurationExtensions.dll <span style='color:#111;'> 22.13KB </span>","children":null,"spread":false},{"title":"ChatToGPT.deps.json <span style='color:#111;'> 10.08KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Http.dll <span style='color:#111;'> 67.13KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Options.dll <span style='color:#111;'> 57.63KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Logging.Abstractions.dll <span style='color:#111;'> 60.61KB </span>","children":null,"spread":false},{"title":"ChatToGPT.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Logging.dll <span style='color:#111;'> 43.61KB </span>","children":null,"spread":false},{"title":"Microsoft.Extensions.Configuration.Abstractions.dll <span style='color:#111;'> 24.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"ChatToGPT.csproj <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明