Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -51,7 +51,7 @@ app.post('/generate', async (req, res) => {
|
|
51 |
const response = await axios.post('https://api.openai.com/v1/chat/completions', {
|
52 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
53 |
max_tokens: 2000,
|
54 |
-
model: "gpt-3.5-turbo-
|
55 |
}, {
|
56 |
headers: {
|
57 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
51 |
const response = await axios.post('https://api.openai.com/v1/chat/completions', {
|
52 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
53 |
max_tokens: 2000,
|
54 |
+
model: "gpt-3.5-turbo-1106",
|
55 |
}, {
|
56 |
headers: {
|
57 |
'Authorization': `Bearer ${apiKey}`,
|