Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/clients/claude/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class Claude {
if (!sessionKey) {
throw new Error('Session key required')
}
if (!sessionKey.startsWith('sk-ant-sid01')) {
throw new Error('Session key invalid: Must be in the format sk-ant-sid01-*****')
if (!/^sk-ant-sid\d+-/.test(sessionKey)) {
throw new Error('Session key invalid: Must be in the format sk-ant-sidNN-***** (e.g. sk-ant-sid01-*****, sk-ant-sid02-*****)')
}
if (fetch) {
this.fetch = fetch
Expand Down