在生成数据时出现超出token问题 请问该怎么解决

#1
by wangchenpeng - opened

WARNING:root:Reducing target length to 224, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 3078 tokens (2854 in your prompt; 224 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 179, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 3033 tokens (2854 in your prompt; 179 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 143, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2997 tokens (2854 in your prompt; 143 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 114, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2968 tokens (2854 in your prompt; 114 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 91, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2945 tokens (2854 in your prompt; 91 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 72, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2926 tokens (2854 in your prompt; 72 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 57, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2911 tokens (2854 in your prompt; 57 for the completion). Please reduce your prompt; or completion length..
WARNING:root:Reducing target length to 45, Retrying...
WARNING:root:OpenAIError: This model's maximum context length is 2049 tokens, however you requested 2899 tokens (2854 in your prompt; 45 for the completion). Please reduce your prompt; or

Sign up or log in to comment