Skip to content

Commit

Permalink
feat (provider/replicate): Fix api key name typo, add package metadat…
Browse files Browse the repository at this point in the history
…a/files config. (#4351)
  • Loading branch information
shaper authored Jan 11, 2025
1 parent 7dbac68 commit 33b28df
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-crabs-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/replicate': patch
---

feat (provider/replicate): Fix api key name typo, add package metadata/files config.
2 changes: 1 addition & 1 deletion content/providers/01-ai-sdk-providers/60-replicate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ and create a provider instance with your settings:
import { createReplicate } from '@ai-sdk/replicate';

const replicate = createReplicate({
apiKey: process.env.REPLICATE_API_KEY ?? '',
apiKey: process.env.REPLICATE_API_TOKEN ?? '',
});
```

Expand Down
17 changes: 16 additions & 1 deletion packages/replicate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*",
"CHANGELOG.md"
],
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
Expand Down Expand Up @@ -44,5 +48,16 @@
},
"publishConfig": {
"access": "public"
}
},
"homepage": "https://sdk.vercel.ai/docs",
"repository": {
"type": "git",
"url": "git+https://github.com/vercel/ai.git"
},
"bugs": {
"url": "https://github.com/vercel/ai/issues"
},
"keywords": [
"ai"
]
}

0 comments on commit 33b28df

Please sign in to comment.