Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for MAX_RESPONSE_LENGTH #6

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

davidecke
Copy link
Contributor

I got this error because the response was bigger than 2000 in length:

errors: {
      content: {
        _errors: [
          {
            code: 'BASE_TYPE_MAX_LENGTH',
            message: 'Must be 2000 or fewer in length.'
          }
        ]
    }
},

Example prompt: Give me an essay about Super Mario where the content of your response is 2200 characters

I fixed it by just changing content.length to content.response.length and now it correctly sends me the response as PM instead.

the code was checking content.length instead of content.response.length
@itskdhere itskdhere merged commit e4879aa into itskdhere:main Feb 20, 2023
@itskdhere
Copy link
Owner

Thank you for the fix @davidecke 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants