openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

Bugfix for iterPages

Open alexmakeev opened this issue 1 year ago • 0 comments

During check of nextPage existence the field "has_more" might be used (gotten at body). Without it, iteration of, say all thread messages list brings to infinite loop. Body field has unknown type (might be also detailed), so I used cast to "any" to skip linter/ts issues.

  • [x] I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

alexmakeev avatar Jul 18 '24 11:07 alexmakeev