Rooni commited on
Commit
3088c46
·
verified ·
1 Parent(s): ffa39a1

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -56,7 +56,7 @@ app.post('/pl', async (req, res) => {
56
  }
57
 
58
  try {
59
- const response = await axios.post('https://openai-gemini-iota.vercel.app/v1/chat/completions', {
60
  messages: allMessages,
61
  max_tokens: 4000,
62
  temperature: 0.3,
@@ -64,7 +64,7 @@ app.post('/pl', async (req, res) => {
64
  presence_penalty: 0.2,
65
  }, {
66
  headers: {
67
- 'Authorization': `Bearer ${apiKey}`,
68
  'Content-Type': 'application/json',
69
  },
70
  });
 
56
  }
57
 
58
  try {
59
+ const response = await axios.post('https://text.pollinations.ai/', {
60
  messages: allMessages,
61
  max_tokens: 4000,
62
  temperature: 0.3,
 
64
  presence_penalty: 0.2,
65
  }, {
66
  headers: {
67
+ // 'Authorization': `Bearer ${apiKey}`,
68
  'Content-Type': 'application/json',
69
  },
70
  });