Problem with limiting the amount of characters in a summary

I am creating a plugin for wordpress that creates posts using an rss feed as a source, i am then using openai to summarize the title of the post with a limit of 36 characters. However, no matter what terminology or way i ask chatgpt, the answers rarely are 36 characters and usually exceeded 45.

Is there a specific way of using openai to make sure the limit of characters is used? Or is this something that it is not able to do?

are you using a summarize endpoint or chatCompletion?
are you using summarize or Tl;dr?
can you share your prompt?

1 Like