Skip to content

Commit a71067d

Browse files
fix(community): Set awaitHandlers to true in upstash ratelimit (#7571)
Co-authored-by: Jacob Lee <[email protected]>
1 parent 7326a63 commit a71067d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/langchain-community/src/callbacks/handlers/upstash_ratelimit.ts

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ class UpstashRatelimitHandler extends BaseCallbackHandler {
100100
options.llmOutputTotalTokenField ?? "totalTokens";
101101
this.llmOutputPromptTokenField =
102102
options.llmOutputPromptTokenField ?? "promptTokens";
103+
104+
this.awaitHandlers = true;
103105
}
104106

105107
/**

0 commit comments

Comments
 (0)