JiuZZZ commited on
Commit
23a7154
·
verified ·
1 Parent(s): 5b05270

Update hf.js

Browse files
Files changed (1) hide show
  1. hf.js +1 -1
hf.js CHANGED
@@ -8,7 +8,7 @@ app.use(morgan('combined'));
8
  app.use('*', createProxyMiddleware({
9
  target: 'http://localhost:3010',
10
  pathRewrite: {
11
- '^/hf': '',
12
  },
13
  changeOrigin: true
14
  }));
 
8
  app.use('*', createProxyMiddleware({
9
  target: 'http://localhost:3010',
10
  pathRewrite: {
11
+ '/hf/v1/chat/completions': '/v1/chat/completions',
12
  },
13
  changeOrigin: true
14
  }));