Skip to content

Commit 26cad91

Browse files
authored
Merge pull request #1245 from Portkey-AI/chore/remove-response-text-check-for-output-hooks
chore: remove response text check from hooks middleware for output ho…
2 parents ee36eab + 30d9670 commit 26cad91

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/middlewares/hooks/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,6 @@ export class HooksManager {
429429
(context.requestType === 'embed' && hook.type === HookType.MUTATOR) ||
430430
(hook.eventType === 'afterRequestHook' &&
431431
context.response.statusCode !== 200) ||
432-
(hook.eventType === 'afterRequestHook' &&
433-
context.request.isStreamingRequest &&
434-
!context.response.text) ||
435432
(hook.eventType === 'beforeRequestHook' &&
436433
span.getParentHookSpanId() !== null) ||
437434
(hook.type === HookType.MUTATOR && !!hook.async)

0 commit comments

Comments
 (0)