Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e042db2

Browse files
committed
add rate limits
Former-commit-id: f1ee68d Former-commit-id: f04cae9a79b5a30da18b56b73a71105484958add
1 parent 3b3e5b5 commit e042db2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/twilio/src/pods.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ async function main() {
2222
name: "twilio",
2323
workflowsPath,
2424
functions: { twilioCall },
25+
rateLimit: 200,
2526
}),
2627
restack.pod({
2728
name: "openai",
2829
workflowsPath,
2930
functions: { streamQuestion, questionAnswer },
31+
rateLimit: 10000,
3032
}),
3133
restack.pod({
3234
name: "deepgram",
@@ -35,6 +37,7 @@ async function main() {
3537
streamAudioToText,
3638
streamTextToAudio,
3739
},
40+
rateLimit: 1000,
3841
}),
3942
]);
4043

0 commit comments

Comments
 (0)