Skip to content

Commit 2ab1c7d

Browse files
committed
update to assistants v2
1 parent ecc849a commit 2ab1c7d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/openai/common/helpers.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function parseToolsArray(arr) {
44
if (!arr) return undefined;
55
return arr.map((value) => {
66
if ([
7-
"retrieval",
7+
"file_search",
88
"code_interpreter",
99
].includes(value)) {
1010
return {

components/openai/openai.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default {
316316
"User-Agent": "@PipedreamHQ/pipedream v1.0",
317317
};
318318
},
319-
_betaHeaders(version = "v1") {
319+
_betaHeaders(version = "v2") {
320320
return {
321321
...this._commonHeaders(),
322322
"OpenAI-Beta": `assistants=${version}`,

components/openai/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/openai",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "Pipedream OpenAI Components",
55
"main": "openai.app.mjs",
66
"keywords": [
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@ffmpeg-installer/ffmpeg": "^1.1.0",
18-
"@pipedream/platform": "^1.2.1",
18+
"@pipedream/platform": "^3.0.3",
1919
"@pipedream/types": "^0.1.4",
2020
"axios": "^1.6.2",
2121
"bottleneck": "^2.19.5",

0 commit comments

Comments
 (0)