Skip to content

Commit

Permalink
Update AzureAIServices.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Feb 7, 2024
1 parent bb9028e commit 7329756
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ public DPResponse search(String text, Classification classification) {
}
}

if(products.size() > 4)
{
// too many items for a content card
dpResponse.setContentCard(false);
}

dpResponse.setDpResponseText(dpResponseText);
dpResponse.setProducts(products);
}
Expand Down

0 comments on commit 7329756

Please sign in to comment.