hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
2 stars 0 forks source link

Update chat length. #119

Open hiyaryan opened 5 months ago

hiyaryan commented 5 months ago

Currently chat length is set to 180 characters. A seemingly arbitrary number adopted from the tweet.

Instead, the chat length may sometimes be worth growing beyond that. If the user sends a longer chat, it might be nice to receive a response with at least the same length.

If the user sends a 1 letter response, it might still be nice to send a longer response, however.

The chat length can be made dynamic. It takes the total length of the string sent by the user.

If the user sends a string greater than 180 characters, the maximum number of characters returned in a response will match it. Anything less, the length will retain its original maximum length of 180.