@shop-os/modelkit 0.3.5 → 0.3.7

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/catalog.js CHANGED
@@ -1180,12 +1180,18 @@ var TEXT_MODELS = [
1180
1180
  contextWindow: 1048576
1181
1181
  }
1182
1182
  }),
1183
+ // Perplexity stopped serving Sonar Chat Completions on 2026-09-27; @ai-sdk/perplexity 3.1
1184
+ // speaks the Agent API, which rejects the bare `sonar*` ids. Its migration guide maps Sonar
1185
+ // and Sonar Pro to the `fast` preset and Sonar Reasoning Pro to `low`
1186
+ // (docs.perplexity.ai/docs/agent-api/migrate-from-sonar/overview).
1183
1187
  text("sonar", "Sonar", "sonar", {
1188
+ lifecycle: "deprecated",
1189
+ replacedBy: "perplexity/sonar",
1184
1190
  exposure: [],
1185
1191
  display: {
1186
1192
  provider: "perplexity",
1187
1193
  costTier: 1,
1188
- description: "Perplexity Sonar lightweight web-grounded search model returning cited answers; 128K-token context."
1194
+ description: "Perplexity Sonar on Chat Completions, which Perplexity stopped serving on 2026-09-27; calls now fail."
1189
1195
  },
1190
1196
  capabilities: {
1191
1197
  vision: true,
@@ -1193,11 +1199,13 @@ var TEXT_MODELS = [
1193
1199
  }
1194
1200
  }),
1195
1201
  text("sonar-pro", "Sonar Pro", "sonar-pro", {
1202
+ lifecycle: "deprecated",
1203
+ replacedBy: "perplexity/fast",
1196
1204
  exposure: [],
1197
1205
  display: {
1198
1206
  provider: "perplexity",
1199
1207
  costTier: 2,
1200
- description: "Perplexity Sonar Pro advanced web-grounded search model for complex multi-step queries; 200K-token context."
1208
+ description: "Perplexity Sonar Pro on Chat Completions, which Perplexity stopped serving on 2026-09-27; calls now fail."
1201
1209
  },
1202
1210
  capabilities: {
1203
1211
  vision: true,
@@ -1205,12 +1213,49 @@ var TEXT_MODELS = [
1205
1213
  }
1206
1214
  }),
1207
1215
  text("sonar-reasoning-pro", "Sonar Reasoning Pro", "sonar-reasoning-pro", {
1216
+ lifecycle: "deprecated",
1217
+ replacedBy: "perplexity/fast",
1208
1218
  exposure: [],
1209
1219
  display: {
1210
1220
  provider: "perplexity",
1211
1221
  costTier: 2,
1212
- description: "Perplexity Sonar Reasoning Pro chain-of-thought web-grounded search model for complex problem-solving; 128K-token context."
1222
+ description: "Perplexity Sonar Reasoning Pro on Chat Completions, which Perplexity stopped serving on 2026-09-27; calls now fail."
1223
+ },
1224
+ capabilities: {
1225
+ vision: true,
1226
+ contextWindow: 128e3
1227
+ }
1228
+ }),
1229
+ // Sonar as an Agent API model. A bare model searches only when given the web_search
1230
+ // tool, so the row sends it on every call; the answer's sources come from its results.
1231
+ text("perplexity/sonar", "Perplexity Sonar", "perplexity/sonar", {
1232
+ exposure: [],
1233
+ providerOptions: {
1234
+ modelkit: { provider: "perplexity" },
1235
+ perplexity: { tools: [{ type: "web_search" }] }
1236
+ },
1237
+ display: {
1238
+ provider: "perplexity",
1239
+ costTier: 1,
1240
+ description: "Perplexity Sonar on the Agent API with web search, returning answers grounded in cited sources."
1241
+ },
1242
+ // Perplexity publishes no Agent API context window; Sonar's own is 128K.
1243
+ capabilities: {
1244
+ vision: true,
1245
+ contextWindow: 128e3
1246
+ }
1247
+ }),
1248
+ // The Agent API `fast` preset: openai/gpt-5.6-luna with one web search, Perplexity's
1249
+ // recommended replacement for Sonar and Sonar Pro.
1250
+ text("perplexity/fast", "Perplexity Fast", "fast", {
1251
+ exposure: [],
1252
+ providerOptions: { modelkit: { provider: "perplexity" } },
1253
+ display: {
1254
+ provider: "perplexity",
1255
+ costTier: 1,
1256
+ description: "Perplexity Agent API fast preset: a quick web-grounded answer from one search."
1213
1257
  },
1258
+ // No published preset window; Sonar's 128K, the size the preset replaces.
1214
1259
  capabilities: {
1215
1260
  vision: true,
1216
1261
  contextWindow: 128e3