Hacker News new | ask | show | jobs
by QuercusMax 15 days ago
That makes no sense. Why don't you just set a char-limit on the input and reject anything that's too long?
1 comments

If I trim I may lost important context. I understand the concern here.
Who said anything about trimming?

Make your text box only hold as much data as you can transmit. Or send two messages if you need to. Do you think someone is going to paste a novel in there or something? This is a VERY stupid reason to use an LLM.

Have two inputs a summary and a longer text field... kind of like an email subject.

Then limit the text input to like 100 chars, giving another 60 for general "... continued in email to you@..."

Send the summary as the subject, and the full text in the email. easy peasy.

I'd also add a simple text auth/password prompt as well as list the contacts and their respective email and phone numbers too, so you can call easier.