Skip to content

Commit 1ba0997

Browse files
Update index.mjs
replacing session-key examples with a consistent version-agnostic form
1 parent 2c15a5c commit 1ba0997

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/clients/claude/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class Claude {
4444
* @param {function} [options.fetch] - Fetch function
4545
* @example
4646
* const claude = new Claude({
47-
* sessionKey: 'sk-ant-sid01-*****',
47+
* sessionKey: 'sk-ant-sidXX-*****',
4848
* fetch: globalThis.fetch
4949
* })
5050
*
@@ -164,7 +164,7 @@ export class Claude {
164164
// Can't figure out a way to test this so I'm just assuming it works
165165
if (!(this.fetch || globalThis.fetch)) {
166166
throw new Error(
167-
`No fetch available in your environment. Use node-18 or later, a modern browser, or add the following code to your project:\n\nimport "isomorphic-fetch";\nconst claude = new Claude({fetch: fetch, sessionKey: "sk-ant-sid01-*****"});`,
167+
`No fetch available in your environment. Use node-18 or later, a modern browser, or add the following code to your project:\n\nimport "isomorphic-fetch";\nconst claude = new Claude({fetch: fetch, sessionKey: "sk-ant-sidXX-*****"});`,
168168
)
169169
}
170170
if (!this.proxy) {

0 commit comments

Comments
 (0)