MCPcopy Index your code
hub / github.com/simstudioai/sim / route.ts

File route.ts

apps/sim/app/api/speech/token/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createHash } from 'node:crypto'
2import { db } from '@sim/db'
3import { chat, workflow } from '@sim/db/schema'
4import { createLogger } from '@sim/logger'

Callers

nothing calls this directly

Calls 14

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
getClientIpFunction · 0.90
checkActorUsageLimitsFunction · 0.90
recordUsageFunction · 0.90
getCostMultiplierFunction · 0.90
getErrorMessageFunction · 0.90
hashVoiceTokenFunction · 0.85
checkRateLimitDirectMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected