Skip to content

Commit 2e17ed0

Browse files
committed
fix if condition
Signed-off-by: Alex Wang <[email protected]>
1 parent 61500ee commit 2e17ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semantic-router/pkg/extproc/response_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (r *OpenAIRouter) handleResponseBody(v *ext_proc.ProcessingRequest_Response
146146
}
147147

148148
// Update the cache
149-
if ctx.RequestQuery != "" && responseBody != nil {
149+
if ctx.RequestID != "" && responseBody != nil {
150150
err := r.Cache.UpdateWithResponse(ctx.RequestID, responseBody)
151151
if err != nil {
152152
observability.Errorf("Error updating cache: %v", err)

0 commit comments

Comments
 (0)