Skip to content

Commit e2b3774

Browse files
authored
Added a filter to the OpenAI response.
1 parent 4851e34 commit e2b3774

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

class-gwiz-gf-openai.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,8 @@ public function make_request( $endpoint, $body, $feed ) {
17371737
return $response;
17381738
}
17391739

1740+
$response = apply_filters( 'gf_openai_response', $response, $body, $endpoint, $feed );
1741+
17401742
$request_cache[ $cache_key ] = $response;
17411743

17421744
if ( $use_cache ) {

0 commit comments

Comments
 (0)