Spaces:
Paused
Paused
Update lib/chatgpt.js
Browse files- lib/chatgpt.js +2 -2
lib/chatgpt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
const axios = require("axios")
|
| 2 |
|
| 3 |
-
async function acytoo(text) {
|
| 4 |
let res = await axios.request({
|
| 5 |
method: "POST",
|
| 6 |
url: "https://chat.acytoo.com/api/completions",
|
|
@@ -11,7 +11,7 @@ async function acytoo(text) {
|
|
| 11 |
content: text,
|
| 12 |
createAt: "",
|
| 13 |
}],
|
| 14 |
-
model:
|
| 15 |
password: "",
|
| 16 |
temprature: 1
|
| 17 |
}),
|
|
|
|
| 1 |
const axios = require("axios")
|
| 2 |
|
| 3 |
+
async function acytoo(text, model) {
|
| 4 |
let res = await axios.request({
|
| 5 |
method: "POST",
|
| 6 |
url: "https://chat.acytoo.com/api/completions",
|
|
|
|
| 11 |
content: text,
|
| 12 |
createAt: "",
|
| 13 |
}],
|
| 14 |
+
model: model,
|
| 15 |
password: "",
|
| 16 |
temprature: 1
|
| 17 |
}),
|