Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -88,7 +88,7 @@ app.post('/gen', async (req, res) => {
88
  try {
89
  const response = await axios.post(base_url, payload, {
90
  headers: {
91
- 'Authorization': `Bearer ${openai_key}`,
92
  'Content-Type': 'application/json',
93
  },
94
  });
 
88
  try {
89
  const response = await axios.post(base_url, payload, {
90
  headers: {
91
+ 'x-goog-api-key': `${openai_key}`,
92
  'Content-Type': 'application/json',
93
  },
94
  });