Skip to content

Commit

Permalink
Fixed an issue where different cache key is generated for the same me…
Browse files Browse the repository at this point in the history
…ssage content
  • Loading branch information
barthc committed Apr 17, 2024
1 parent da1debc commit c0b6bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-gwiz-gf-openai.php
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ public function make_request( $endpoint, $body, $feed ) {

$cache_key = sha1( serialize( array(
'url' => $url,
'body' => $body,
'body' => map_deep( $body, 'sanitize_text_field' ),
'request_params' => $this->get_request_params( $feed ),
) ) );

Expand Down

0 comments on commit c0b6bd2

Please sign in to comment.