<p>可以使用以下代码实现:```html</p>
<html>
<head>
<title>调用ChatGPT API实现对话</title>
<script src="https://cdn.jsdelivr/npm/chatgpt@1.0.1/dist/chatgpt.min.js"></script>
</head>
<body>
<script>
const chatgpt = new ChatGPT({
apiKey: '你的APIKEY'
});
chatgpt.on('message', (me
```

发布评论