Skip to content

Commit ae39fe2

Browse files
rootfsCopilot
andauthored
Update src/semantic-router/pkg/extproc/request_handler.go
Co-authored-by: Copilot <[email protected]>
1 parent 1b7e9ae commit ae39fe2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,8 @@ func (r *OpenAIRouter) handleRequestBody(v *ext_proc.ProcessingRequest_RequestBo
411411
} else if len(nonUserMessages) > 0 {
412412
classificationText = strings.Join(nonUserMessages, " ")
413413
}
414-
if classificationText != "" {
415-
categoryName = r.findCategoryForClassification(classificationText)
416-
observability.Debugf("Classified request to category: %s", categoryName)
417-
}
414+
categoryName = r.findCategoryForClassification(classificationText)
415+
observability.Debugf("Classified request to category: %s", categoryName)
418416
}
419417

420418
// Handle caching with category-specific settings

0 commit comments

Comments
 (0)