Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -126,7 +126,7 @@ app.post('/generate', async (req, res) => {
|
|
126 |
});
|
127 |
|
128 |
app.post('/cr', async (req, res) => {
|
129 |
-
const
|
130 |
const apiKey = req.body.api || openai_key;
|
131 |
|
132 |
if (!prompt) {
|
@@ -135,7 +135,7 @@ app.post('/cr', async (req, res) => {
|
|
135 |
|
136 |
try {
|
137 |
const response = await axios.post('https://geminiyufi.vercel.app/v1/chat/completions', {
|
138 |
-
|
139 |
max_tokens: 2000,
|
140 |
temperature: 0.8,
|
141 |
// presence_penalty: 0.0,
|
|
|
126 |
});
|
127 |
|
128 |
app.post('/cr', async (req, res) => {
|
129 |
+
const promptt = req.body.prompt;
|
130 |
const apiKey = req.body.api || openai_key;
|
131 |
|
132 |
if (!prompt) {
|
|
|
135 |
|
136 |
try {
|
137 |
const response = await axios.post('https://geminiyufi.vercel.app/v1/chat/completions', {
|
138 |
+
prompt: `${start}\n\n---\n\n${promptt}`,
|
139 |
max_tokens: 2000,
|
140 |
temperature: 0.8,
|
141 |
// presence_penalty: 0.0,
|