From b56655cd45843f7206206b62d5daf60fcd85e810 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 5 Oct 2024 13:34:35 +0000 Subject: [PATCH] deps: Upgrade openai package --- apps/workers/package.json | 2 +- pnpm-lock.yaml | 33 +++++++++++---------------------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/apps/workers/package.json b/apps/workers/package.json index bbd5b17d..35217c96 100644 --- a/apps/workers/package.json +++ b/apps/workers/package.json @@ -27,7 +27,7 @@ "metascraper-twitter": "^5.43.4", "metascraper-url": "^5.43.4", "ollama": "^0.5.0", - "openai": "^4.29.0", + "openai": "^4.67.1", "pdf2json": "^3.0.5", "pdfjs-dist": "^4.0.379", "puppeteer": "^22.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6c66d27b..4a6cc45d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -741,8 +741,8 @@ importers: specifier: ^0.5.0 version: 0.5.0 openai: - specifier: ^4.29.0 - version: 4.29.0 + specifier: ^4.67.1 + version: 4.67.1(zod@3.22.4) pdf2json: specifier: ^3.0.5 version: 3.0.5 @@ -5078,9 +5078,6 @@ packages: bare-path@2.1.0: resolution: {integrity: sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw==} - base-64@0.1.0: - resolution: {integrity: sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==} - base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} @@ -6071,9 +6068,6 @@ packages: difflib@0.2.4: resolution: {integrity: sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w==} - digest-fetch@1.3.0: - resolution: {integrity: sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==} - dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -9439,9 +9433,14 @@ packages: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} engines: {node: '>=12'} - openai@4.29.0: - resolution: {integrity: sha512-ic6C681bSow1XQdKhADthM/OOKqNL05M1gCFLx1mRqLJ+yH49v6qnvaWQ76kwqI/IieCuVTXfRfTk3sz4cB45w==} + openai@4.67.1: + resolution: {integrity: sha512-2YbRFy6qaYRJabK2zLMn4txrB2xBy0KP5g/eoqeSPTT31mIJMnkT75toagvfE555IKa2RdrzJrZwdDsUipsAMw==} hasBin: true + peerDependencies: + zod: ^3.23.8 + peerDependenciesMeta: + zod: + optional: true opener@1.5.2: resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} @@ -19494,9 +19493,6 @@ snapshots: dev: false optional: true - base-64@0.1.0: - dev: false - base64-js@1.5.1: dev: false @@ -20778,12 +20774,6 @@ snapshots: heap: 0.2.7 dev: true - digest-fetch@1.3.0: - dependencies: - base-64: 0.1.0 - md5: 2.3.0 - dev: false - dir-glob@3.0.1: dependencies: path-type: 4.0.0 @@ -25624,17 +25614,16 @@ snapshots: is-wsl: 2.2.0 dev: false - openai@4.29.0: + openai@4.67.1(zod@3.22.4): dependencies: '@types/node': 18.19.18 '@types/node-fetch': 2.6.11 abort-controller: 3.0.0 agentkeepalive: 4.5.0 - digest-fetch: 1.3.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 node-fetch: 2.7.0 - web-streams-polyfill: 3.3.3 + zod: 3.22.4 transitivePeerDependencies: - encoding dev: false