Skip to content

fix iteration error#2052

Closed
yishangupenn wants to merge 3 commits into
mainfrom
upstream-pr-208
Closed

fix iteration error#2052
yishangupenn wants to merge 3 commits into
mainfrom
upstream-pr-208

Conversation

@yishangupenn

Copy link
Copy Markdown

Copied from upstream: openai/openai-cookbook#208
Original author: @justanotherlad
Originally opened: 2023-03-10


array iteration error: sentences up till max_len of token exceeds should be returned

Here's a screenshot of before and after the change (vertically in terminal) in the code. Clearly, the below should be returned: (The numbers vertically represent current tokens and total_tokens number for each iteration.

Screenshot from 2023-03-07 21-16-59

array iteration error: sentences up till max_len of token exceeds should be returned
split list once instead of twice and take parsed string up till max token length is exceeded
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