Skip to content

Commit 0bc776e

Browse files
committed
fix(bedrock): correct timestamp char count in comment
1 parent c86e779 commit 0bc776e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/providers/bedrock/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function checkForForcedToolUsage(
7272
* AWS Bedrock requires toolUseId to be 1-64 characters, pattern [a-zA-Z0-9_-]+
7373
*/
7474
export function generateToolUseId(toolName: string): string {
75-
const timestamp = Date.now().toString(36) // Base36 timestamp (8 chars)
75+
const timestamp = Date.now().toString(36) // Base36 timestamp (9 chars)
7676
const random = Math.random().toString(36).substring(2, 7) // 5 random chars
7777
const suffix = `-${timestamp}-${random}` // ~15 chars
7878
const maxNameLength = 64 - suffix.length

0 commit comments

Comments
 (0)