From 052f37294dfb66dc938379429a43192d3fac5847 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 12 Aug 2025 13:15:36 +0000 Subject: [PATCH] fix(openaiProvider): Update default chat model to gpt-5-mini and bump dependency versions --- changelog.md | 8 ++++++++ package.json | 4 ++-- pnpm-lock.yaml | 20 ++++++++++---------- ts/00_commitinfo_data.ts | 2 +- ts/provider.openai.ts | 6 +++--- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/changelog.md b/changelog.md index 181d9a3..30b04a5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-08-12 - 0.5.11 - fix(openaiProvider) +Update default chat model to gpt-5-mini and bump dependency versions + +- Changed default chat model in OpenAiProvider from 'o3-mini' and 'o4-mini' to 'gpt-5-mini' +- Upgraded @anthropic-ai/sdk from ^0.57.0 to ^0.59.0 +- Upgraded openai from ^5.11.0 to ^5.12.2 +- Added new local Claude settings configuration (.claude/settings.local.json) + ## 2025-08-03 - 0.5.10 - fix(dependencies) Update SmartPdf to v4.1.1 for enhanced PDF processing capabilities diff --git a/package.json b/package.json index 7ac380c..721ec71 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@types/node": "^22.15.17" }, "dependencies": { - "@anthropic-ai/sdk": "^0.57.0", + "@anthropic-ai/sdk": "^0.59.0", "@push.rocks/smartarray": "^1.1.0", "@push.rocks/smartfile": "^11.2.5", "@push.rocks/smartpath": "^6.0.0", @@ -31,7 +31,7 @@ "@push.rocks/smartpromise": "^4.2.3", "@push.rocks/smartrequest": "^4.2.1", "@push.rocks/webstream": "^1.0.10", - "openai": "^5.11.0" + "openai": "^5.12.2" }, "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ab7549..d6764a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@anthropic-ai/sdk': - specifier: ^0.57.0 - version: 0.57.0 + specifier: ^0.59.0 + version: 0.59.0 '@push.rocks/smartarray': specifier: ^1.1.0 version: 1.1.0 @@ -33,8 +33,8 @@ importers: specifier: ^1.0.10 version: 1.0.10 openai: - specifier: ^5.11.0 - version: 5.11.0(ws@8.18.3)(zod@3.25.76) + specifier: ^5.12.2 + version: 5.12.2(ws@8.18.3)(zod@3.25.76) devDependencies: '@git.zone/tsbuild': specifier: ^2.6.4 @@ -60,8 +60,8 @@ importers: packages: - '@anthropic-ai/sdk@0.57.0': - resolution: {integrity: sha512-z5LMy0MWu0+w2hflUgj4RlJr1R+0BxKXL7ldXTO8FasU8fu599STghO+QKwId2dAD0d464aHtU+ChWuRHw4FNw==} + '@anthropic-ai/sdk@0.59.0': + resolution: {integrity: sha512-m9w9tC+N+GUNprwEOhU3VKKSYwXA1fIevRCe7kOFonV4xu5vxqmqyoLy+dkdVvc5W1F4WUTVE/7I4criaF9gnw==} hasBin: true '@api.global/typedrequest-interfaces@2.0.2': @@ -4206,8 +4206,8 @@ packages: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} engines: {node: '>=12'} - openai@5.11.0: - resolution: {integrity: sha512-+AuTc5pVjlnTuA9zvn8rA/k+1RluPIx9AD4eDcnutv6JNwHHZxIhkFy+tmMKCvmMFDQzfA/r1ujvPWB19DQkYg==} + openai@5.12.2: + resolution: {integrity: sha512-xqzHHQch5Tws5PcKR2xsZGX9xtch+JQFz5zb14dGqlshmmDAFBFEWmeIpf7wVqWV+w7Emj7jRgkNJakyKE0tYQ==} hasBin: true peerDependencies: ws: ^8.18.0 @@ -5265,7 +5265,7 @@ packages: snapshots: - '@anthropic-ai/sdk@0.57.0': {} + '@anthropic-ai/sdk@0.59.0': {} '@api.global/typedrequest-interfaces@2.0.2': {} @@ -11313,7 +11313,7 @@ snapshots: is-docker: 2.2.1 is-wsl: 2.2.0 - openai@5.11.0(ws@8.18.3)(zod@3.25.76): + openai@5.12.2(ws@8.18.3)(zod@3.25.76): optionalDependencies: ws: 8.18.3 zod: 3.25.76 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b10c4eb..51cc772 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartai', - version: '0.5.4', + version: '0.5.11', description: 'SmartAi is a versatile TypeScript library designed to facilitate integration and interaction with various AI models, offering functionalities for chat, audio generation, document processing, and vision tasks.' } diff --git a/ts/provider.openai.ts b/ts/provider.openai.ts index 339bad2..1e64c76 100644 --- a/ts/provider.openai.ts +++ b/ts/provider.openai.ts @@ -77,7 +77,7 @@ export class OpenAiProvider extends MultiModalModel { // If we have a complete message, send it to OpenAI if (currentMessage) { const messageToSend = { role: "user" as const, content: currentMessage.content }; - const chatModel = this.options.chatModel ?? 'o3-mini'; + const chatModel = this.options.chatModel ?? 'gpt-5-mini'; const requestParams: any = { model: chatModel, messages: [messageToSend], @@ -123,7 +123,7 @@ export class OpenAiProvider extends MultiModalModel { content: string; }[]; }) { - const chatModel = this.options.chatModel ?? 'o3-mini'; + const chatModel = this.options.chatModel ?? 'gpt-5-mini'; const requestParams: any = { model: chatModel, messages: [ @@ -184,7 +184,7 @@ export class OpenAiProvider extends MultiModalModel { }, })); - const chatModel = this.options.chatModel ?? 'o4-mini'; + const chatModel = this.options.chatModel ?? 'gpt-5-mini'; const requestParams: any = { model: chatModel, messages: [