Any advice on getting output with an specific character size?

Does anybody have any advice on getting output from an specific character size. Limiting the tokens might end in non-sensical abruptions, and giving training examples in the prompt is not bringing me very far.

2 Likes

Hi there, you can read our article on controlling the length of completions here.

4 Likes

still really tough even w/ the article.

I found for characters, that setting it below what I want generally helps. I spent a few hours today iterating different solutions and tbh I don’t think one thing sticks out that helps.

1 Like