ist-dresden / composum-AI

Artificial intelligence services for the Composum Pages CMS and Adobe AEM : content creation and analysis, translation, suggestions, ...
http://ai.composum.com/
MIT License
3 stars 1 forks source link

Change word limitations to token limitation #6

Closed stoerr closed 1 year ago

stoerr commented 1 year ago

We currently make word count limitations on the request, which is pretty inexact to make sure the requests aren't too long. There is already a function to count tokens - we can use that to replace this by limiting tokens.

stoerr commented 1 year ago

Was done in https://github.com/ist-dresden/composum-AI/pull/7 .