Update index.js
Browse files
index.js
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
4 |
const app = express();
|
5 |
-
|
6 |
|
7 |
const modelMapping = {
|
8 |
"gpt-4o-mini": "GPT-4o mini",
|
|
|
1 |
+
import express from 'express';
|
2 |
+
import fetch from 'node-fetch';
|
3 |
+
import { v4 as uuidv4 } from 'uuid';
|
4 |
+
import dotenv from 'dotenv';
|
5 |
+
import { Buffer } from 'buffer';
|
6 |
+
|
7 |
+
dotenv.config();
|
8 |
+
|
9 |
const app = express();
|
10 |
+
|
11 |
|
12 |
const modelMapping = {
|
13 |
"gpt-4o-mini": "GPT-4o mini",
|