Spaces:
Paused
Paused
Update hf.js
Browse files
hf.js
CHANGED
|
@@ -5,6 +5,9 @@ const app = express();
|
|
| 5 |
|
| 6 |
app.use(morgan('dev'));
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
app.use('/hf/v1/chat/completions', createProxyMiddleware({
|
| 9 |
target: 'http://localhost:3010/v1/chat/completions',
|
| 10 |
changeOrigin: true
|
|
|
|
| 5 |
|
| 6 |
app.use(morgan('dev'));
|
| 7 |
|
| 8 |
+
app.use(express.json({ limit: '50mb' }));
|
| 9 |
+
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
|
| 10 |
+
|
| 11 |
app.use('/hf/v1/chat/completions', createProxyMiddleware({
|
| 12 |
target: 'http://localhost:3010/v1/chat/completions',
|
| 13 |
changeOrigin: true
|