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

tokens limit #16

Open
fengin opened this issue Feb 22, 2024 · 0 comments
Open

tokens limit #16

fengin opened this issue Feb 22, 2024 · 0 comments

Comments

@fengin
Copy link

fengin commented Feb 22, 2024

{'error': {'message': "This model's maximum context length is 16385 tokens. However, your messages resulted in 20189 tokens. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}

The Writer Agent cant write long text article and also cant receive long text prompt, I think we need to disassemble write task to slice task, for example tell gpt there several source articles need to read and help to summary it, after that , give all the summarys to gpt and ask it to write a article outline with json response, then we send the part of json prompt to write part of article.

The very important work is need to keep the gpt konw the prompt context all time ,we need to contact before task when send prompt。
while, I am trying to do it although i dont know the result.

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

No branches or pull requests

1 participant