Skip to content

Commit

Permalink
Merge pull request #527 from Portkey-AI/fix/use-res-transformer-for-c…
Browse files Browse the repository at this point in the history
…ached-stream-response

fix: pass response transformer type for cached stream response handler
  • Loading branch information
VisargD authored Aug 20, 2024
2 parents d3a93a1 + 7ca7c39 commit 39f2118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/handlerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export async function tryPost(
fn
));
if (!!cacheResponse) {
return createResponse(cacheResponse, undefined, true);
return createResponse(cacheResponse, fn, true);
}

// Prerequest validator (For virtual key budgets)
Expand Down

0 comments on commit 39f2118

Please sign in to comment.