Skip to content

Commit

Permalink
Merge pull request #4 from fhswf/3-upgrade-to-assistants-v2
Browse files Browse the repository at this point in the history
feat: migrate to assistants v2
  • Loading branch information
cgawron authored Apr 25, 2024
2 parents fe55bad + a326779 commit 767b8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const doProxy = (req, res) => {
},
proxyReqOptDecorator: function (proxyReqOpts, srcReq) {
proxyReqOpts.headers['authorization'] = `Bearer ${API_KEY}`;
proxyReqOpts.headers['OpenAI-Beta'] = 'assistants=v1';
proxyReqOpts.headers['OpenAI-Beta'] = 'assistants=v2';
console.log('proxyReqOpts', proxyReqOpts.headers);
return proxyReqOpts;
},
Expand Down Expand Up @@ -331,7 +331,7 @@ const doProxy = (req, res) => {
},
proxyReqOptDecorator: function (proxyReqOpts, srcReq) {
proxyReqOpts.headers['authorization'] = `Bearer ${API_KEY}`;
proxyReqOpts.headers['OpenAI-Beta'] = 'assistants=v1';
proxyReqOpts.headers['OpenAI-Beta'] = 'assistants=v2';
console.log('proxyReqOpts', proxyReqOpts.headers);
return proxyReqOpts;
},
Expand Down

0 comments on commit 767b8e1

Please sign in to comment.