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