From f08216590b7d39d73a4f4e2988aa42056ef9c16d Mon Sep 17 00:00:00 2001 From: "Paul K." Date: Tue, 4 Feb 2025 17:37:52 -0500 Subject: [PATCH] fix: filter connections by active status --- package-lock.json | 4 ++-- package.json | 2 +- src/pica.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b316240..4091f88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@picahq/ai", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@picahq/ai", - "version": "2.0.0", + "version": "2.0.1", "license": "GPL-3.0", "dependencies": { "@picahq/unified": "^1.0.0", diff --git a/package.json b/package.json index a66baf9..e0fc735 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@picahq/ai", - "version": "2.0.0", + "version": "2.0.1", "description": "Pica AI SDK for Vercel AI SDK integration", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/pica.ts b/src/pica.ts index fd3570b..78780fd 100644 --- a/src/pica.ts +++ b/src/pica.ts @@ -33,6 +33,7 @@ export class Pica { .then(() => { const connectionsInfo = this.connections.length > 0 ? '\t* ' + this.connections + .filter((conn: any) => conn.active) .map((conn: any) => `${conn.platform} - Key: ${conn.key}`) .join('\n\t* ') : 'No connections available';