diff --git a/changelog.md b/changelog.md index 84c2699..4c8d242 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-10-03 - 0.7.4 - fix(provider.anthropic) +Use image/png for embedded PDF images in Anthropic provider and add local Claude settings for development permissions + +- AnthropicProvider: change media_type from 'image/jpeg' to 'image/png' when embedding images extracted from PDFs to ensure correct format in Anthropic requests. +- Add .claude/settings.local.json with development/testing permissions for local Claude usage (shell commands, webfetch, websearch, test/run tasks). + ## 2025-10-03 - 0.7.3 - fix(tests) Add extensive provider/feature tests and local Claude CI permissions diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index e5fbe7d..ed11e3e 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.7.3', + version: '0.7.4', 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.anthropic.ts b/ts/provider.anthropic.ts index 812d1ed..fb85d3a 100644 --- a/ts/provider.anthropic.ts +++ b/ts/provider.anthropic.ts @@ -220,7 +220,7 @@ export class AnthropicProvider extends MultiModalModel { type: 'image', source: { type: 'base64', - media_type: 'image/jpeg', + media_type: 'image/png', data: Buffer.from(imageBytes).toString('base64') } });