Update plugins/gptold.js
Browse files- plugins/gptold.js +2 -1
plugins/gptold.js
CHANGED
@@ -40,7 +40,8 @@ import got from "got";
|
|
40 |
GptRoutes.get("/api/v1/ai/openai/whisper-large-v3-turbo", authenticateApiKey, apiLimiter, async (req, res) => {
|
41 |
const API_BASE_URL = `https://api.cloudflare.com/client/v4/accounts/${process.env['ACCOUNT_ID']}/ai/run/@cf/openai/whisper-large-v3-turbo`;
|
42 |
const headers = {
|
43 |
-
Authorization: `Bearer ${process.env['CLOUDFLARE_API_KEY']}`,
|
|
|
44 |
};
|
45 |
const url = req.query.url;
|
46 |
|
|
|
40 |
GptRoutes.get("/api/v1/ai/openai/whisper-large-v3-turbo", authenticateApiKey, apiLimiter, async (req, res) => {
|
41 |
const API_BASE_URL = `https://api.cloudflare.com/client/v4/accounts/${process.env['ACCOUNT_ID']}/ai/run/@cf/openai/whisper-large-v3-turbo`;
|
42 |
const headers = {
|
43 |
+
"Authorization": `Bearer ${process.env['CLOUDFLARE_API_KEY']}`,
|
44 |
+
"Content-Type": "application/json"
|
45 |
};
|
46 |
const url = req.query.url;
|
47 |
|