Trims generated prompts to requested count Ensures consistent user experience by slicing array if model over-generates Prevents potential cache key mismatches due to inconsistent prompt counts
Trims generated prompts to requested count Ensures consistent user experience by slicing array if model over-generates Prevents potential cache key mismatches due to inconsistent prompt counts