Skip to content

Commit

Permalink
fix: filter connections by active status
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr committed Feb 4, 2025
1 parent ec7e846 commit f082165
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/pica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit f082165

Please sign in to comment.