JiuZZZ commited on
Commit
f7d533f
·
verified ·
1 Parent(s): 54fb645

Update hf.js

Browse files
Files changed (1) hide show
  1. hf.js +2 -2
hf.js CHANGED
@@ -5,8 +5,8 @@ const app = express();
5
 
6
  app.use(morgan('combined'));
7
 
8
- app.use('*', createProxyMiddleware({
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