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