dougollerenshaw / CodeAIde

A tool for interactively building and running code with AI
MIT License
2 stars 1 forks source link

Deal with truncated responses #5

Closed dougollerenshaw closed 1 month ago

dougollerenshaw commented 1 month ago

If the response exceeds the token limit, which is set in constants.py, the response is simply truncated and cannot be parsed as a JSON. Currently there is no mechanism for identifying and dealing with truncated responses. I have the token limit set to its maximum (8192), but this doesn't guarantee that this problem will be avoided. Users may wish to reduce this value to limit costs, which will make truncated responses more likely.

To do:

dougollerenshaw commented 1 month ago

This has been addressed. Closing