@polpo-ai/llm 0.5.20 → 0.5.23
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/model-resolver.js +3 -3
- package/package.json +2 -2
package/dist/model-resolver.js
CHANGED
|
@@ -35,7 +35,7 @@ export function isModelAllowed(spec) {
|
|
|
35
35
|
// Check exact match
|
|
36
36
|
if (spec in modelAllowlist)
|
|
37
37
|
return true;
|
|
38
|
-
// Check without provider prefix (e.g. "claude-opus-4.6" matches "anthropic
|
|
38
|
+
// Check without provider prefix (e.g. "claude-opus-4.6" matches "anthropic/claude-opus-4.6")
|
|
39
39
|
const { provider, modelId } = parseModelSpec(spec);
|
|
40
40
|
const fullSpec = `${provider}:${modelId}`;
|
|
41
41
|
return fullSpec in modelAllowlist;
|
|
@@ -238,7 +238,7 @@ export function listModels(provider) {
|
|
|
238
238
|
*/
|
|
239
239
|
export function buildModelListingForPrompt() {
|
|
240
240
|
const lines = [
|
|
241
|
-
`Format: "provider
|
|
241
|
+
`Format: "provider/model" (e.g. "anthropic/claude-opus-4.6") or just "model" (auto-inferred from prefix).`,
|
|
242
242
|
];
|
|
243
243
|
const catalog = getCatalogSync();
|
|
244
244
|
// Group models by provider
|
|
@@ -280,7 +280,7 @@ export function buildModelListingForPrompt() {
|
|
|
280
280
|
// Count totals
|
|
281
281
|
const totalProviders = byProvider.size + Object.keys(providerOverrides).length;
|
|
282
282
|
const totalModels = catalog.length;
|
|
283
|
-
lines.push(`- ... and ${totalProviders} total providers with ${totalModels}+ models (use "provider
|
|
283
|
+
lines.push(`- ... and ${totalProviders} total providers with ${totalModels}+ models (use "provider/model" format)`);
|
|
284
284
|
lines.push(`Configure your default model in .polpo/polpo.json or via the POLPO_MODEL env var.`);
|
|
285
285
|
return lines.join("\n");
|
|
286
286
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polpo-ai/llm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.23",
|
|
4
4
|
"description": "LLM abstraction for Polpo — multi-provider model resolution, streaming, cost tracking, and failover built on Vercel AI SDK + AI Gateway",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ai-sdk/openai": "^3.0.48",
|
|
21
21
|
"@ai-sdk/openai-compatible": "^2.0.37",
|
|
22
|
-
"@polpo-ai/core": "0.5.
|
|
22
|
+
"@polpo-ai/core": "0.5.23"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@ai-sdk/gateway": ">=3.0.0",
|