visual-ai-assertions 0.19.0 → 0.20.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.
package/dist/index.d.cts CHANGED
@@ -69,6 +69,7 @@ declare const Model: {
69
69
  * recognizes them. All listed models accept image input.
70
70
  */
71
71
  readonly OpenRouter: {
72
+ readonly MUSE_SPARK_1_3: "meta/muse-spark-1.3";
72
73
  readonly GROK_4_6: "x-ai/grok-4.6";
73
74
  readonly GROK_4_5: "x-ai/grok-4.5";
74
75
  readonly KIMI_K3: "moonshotai/kimi-k3";
package/dist/index.d.ts CHANGED
@@ -69,6 +69,7 @@ declare const Model: {
69
69
  * recognizes them. All listed models accept image input.
70
70
  */
71
71
  readonly OpenRouter: {
72
+ readonly MUSE_SPARK_1_3: "meta/muse-spark-1.3";
72
73
  readonly GROK_4_6: "x-ai/grok-4.6";
73
74
  readonly GROK_4_5: "x-ai/grok-4.5";
74
75
  readonly KIMI_K3: "moonshotai/kimi-k3";
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ var Model = {
57
57
  * recognizes them. All listed models accept image input.
58
58
  */
59
59
  OpenRouter: {
60
+ MUSE_SPARK_1_3: "meta/muse-spark-1.3",
60
61
  GROK_4_6: "x-ai/grok-4.6",
61
62
  GROK_4_5: "x-ai/grok-4.5",
62
63
  KIMI_K3: "moonshotai/kimi-k3",
@@ -1194,8 +1195,26 @@ var PRICING_TABLE = {
1194
1195
  inputPricePerToken: 0.5 / PER_MILLION,
1195
1196
  outputPricePerToken: 3 / PER_MILLION
1196
1197
  },
1197
- // OpenRouter passes through upstream per-model pricing (verified 2026-07-22
1198
+ // OpenRouter passes through upstream per-model pricing (verified 2026-09-03
1198
1199
  // against https://openrouter.ai/api/v1/models).
1200
+ // Meta's own listed rates ($1.25 / $4.25, cached input $0.15) match
1201
+ // OpenRouter's pass-through exactly. Cached input is not modelled here:
1202
+ // `calculateCost` applies no cache discount on any provider.
1203
+ [`${Provider.OPENROUTER}:${Model.OpenRouter.MUSE_SPARK_1_3}`]: {
1204
+ inputPricePerToken: 1.25 / PER_MILLION,
1205
+ outputPricePerToken: 4.25 / PER_MILLION
1206
+ },
1207
+ // Muse Spark 1.3's data-sharing tier: same model, ~12x cheaper, because
1208
+ // Meta trains on everything submitted through it. Deliberately keyed by the
1209
+ // literal slug rather than a `Model.OpenRouter` entry — it must never be
1210
+ // reachable via autocomplete or default selection. Pass the string yourself
1211
+ // (`model: "meta/muse-spark-1.3-contributor"`) to opt in; cost is still
1212
+ // tracked correctly once you do. Cached input is $0.002/MTok, not modelled
1213
+ // (no provider gets a cache discount here).
1214
+ [`${Provider.OPENROUTER}:meta/muse-spark-1.3-contributor`]: {
1215
+ inputPricePerToken: 0.1 / PER_MILLION,
1216
+ outputPricePerToken: 0.2 / PER_MILLION
1217
+ },
1199
1218
  [`${Provider.OPENROUTER}:${Model.OpenRouter.GROK_4_6}`]: {
1200
1219
  inputPricePerToken: 2 / PER_MILLION,
1201
1220
  outputPricePerToken: 6 / PER_MILLION