@aeye/openrouter 0.3.9 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,6 +156,6 @@ console.log(response.usage?.cost); // real cost reported by OpenRouter
156
156
 
157
157
  - **Chat-only provider.** `generateImage`, `editImage`, `transcribe`, `speech`, and `embed` are set to `undefined` — calling those operations on this provider will not work; use OpenAI/AWS/Replicate for them.
158
158
  - Model ids are `provider/model` slugs (e.g. `anthropic/claude-3.5-sonnet`), not raw OpenAI ids.
159
- - Strict/structured output behavior is inherited from `OpenAIProvider` (OpenAI-shaped strict schemas, best-effort, silent lenient fallback).
159
+ - Strict/structured output behavior is inherited from `OpenAIProvider` (best-effort, silent lenient fallback), but the accepted dialects are widened here: `supportedStrictFamilies = {'openai', 'anthropic', 'google'}`, because the model id's `family/…` prefix names the upstream that actually serves the request. This applies to **tool** schemas as well as `response_format`; before 0.4.x the inherited `{'openai'}` quietly forced every non-OpenAI model's tools through LENIENT.
160
160
  - Assistant reasoning is split into a separate preceding message during conversion to work around OpenRouter not round-tripping reasoning attached to content — expect an extra assistant message in transformed payloads.
161
161
  - ZDR (`zdr: true` / `dataCollection: 'deny'`) only constrains upstreams that honor it; combine with `only`/`ignore` for strict guarantees.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeye/openrouter",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "@aeye OpenRouter - OpenRouter integration for @aeye",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -48,7 +48,7 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@aeye/ai": "^0.3.9",
51
- "@aeye/core": "^0.3.9",
51
+ "@aeye/core": "^0.5.0",
52
52
  "@aeye/openai": "^0.3.9",
53
53
  "openai": "^6.6.0"
54
54
  },