diff --git a/package-lock.json b/package-lock.json index b980d03..541d7ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "axios": "^1.6.2", - "mime-types": "^2.1.35", + "form-data": "^4.0.0", "mustache": "^4.2.0", "uuid": "^9.0.1" }, @@ -19,7 +19,6 @@ "@jest/types": "^29.6.3", "@trivago/prettier-plugin-sort-imports": "^4.2.0", "@types/jest": "^29.5.11", - "@types/mime-types": "^2.1.4", "@types/mustache": "^4.2.5", "@types/uuid": "^9.0.7", "@typescript-eslint/eslint-plugin": "^6.0.0", @@ -5750,12 +5749,6 @@ "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", "devOptional": true }, - "node_modules/@types/mime-types": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@types/mime-types/-/mime-types-2.1.4.tgz", - "integrity": "sha512-lfU4b34HOri+kAY5UheuFMWPDOI+OPceBSHZKp69gEyTL/mmJ4cnU6Y/rlme3UL3GyOn6Y42hyIEw0/q8sWx5w==", - "dev": true - }, "node_modules/@types/mustache": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/@types/mustache/-/mustache-4.2.5.tgz", diff --git a/package.json b/package.json index a99b60c..a7bcaa6 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "@jest/types": "^29.6.3", "@trivago/prettier-plugin-sort-imports": "^4.2.0", "@types/jest": "^29.5.11", - "@types/mime-types": "^2.1.4", "@types/mustache": "^4.2.5", "@types/uuid": "^9.0.7", "@typescript-eslint/eslint-plugin": "^6.0.0", @@ -53,7 +52,7 @@ }, "dependencies": { "axios": "^1.6.2", - "mime-types": "^2.1.35", + "form-data": "^4.0.0", "mustache": "^4.2.0", "uuid": "^9.0.1" }, diff --git a/src/openai.ts b/src/openai.ts index 5f2ca19..359c135 100644 --- a/src/openai.ts +++ b/src/openai.ts @@ -108,6 +108,7 @@ class OpenAIAssistantSyncer { : null; const toolCall = (runStep.step_details as ToolCallsStepDetails) .tool_calls[0]; + // @ts-expect-error "retrieval" is not in the type const type = toolCall.type === 'retrieval' ? 'retrieval' : 'tool'; let input = {};