c#如何引入chatgpt开发ai智能化应用?
网友回复
以下是使用C#调用ChatGPT API的示例代码:
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var endpoint = "https://api.openai.com/v1/engines/davinci-codex/completions";
var apiKey = "YOUR_API_KEY_HERE";
var prompt = "Hello, how are y...点击查看剩余70%


