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