Skip to content

chatgpt command limit response length #840

@marko-radosavljevic

Description

@marko-radosavljevic

Chatgpt command will crash if the response is over 2000 characters. To prevent that, we have to limit the response.

Just limiting the max tokens is a bad solution, because it would cut the answer short. Getting a guide or a code solution that is 90% there is not very helpful.

The solution is to add 'Answer in 1500 characters or less.' to the user question. And if chatgpt still goes over the limit, we can hard limit to prevent it from crashing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions