Repository navigation
Yield initial prediction output in polling iterators - #480
Open
jeeth-kataria wants to merge 1 commit into
Open
jeeth-kataria wants to merge 1 commit into
jeeth-kataria wants to merge 1 commit into
Conversation
Assisted-by: Codex Signed-off-by: jeeth-kataria <172952299+jeeth-kataria@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The polling iterators initialized their offset from the prediction’s current output. For a nonblocking run whose create response already contains
["Hello, "], an unchanged poll followed by["Hello, ", "world!"]yielded only["world!"]. Calling the iterator on an already-succeeded prediction yielded nothing.Start each iterator’s offset at zero and advance it after yielding a snapshot. This delivers the initial items, skips repeated items on subsequent polls, and yields the final suffix. Both public run paths and the direct iterators are covered with mock HTTP responses, including a completed prediction that needs no further GET requests.
On upstream d2956ff the two initially-empty control cases passed and all three new regression cases failed. With the change the offline suite passed (161 passed, 6 skipped, cassette recording disabled). Codex assisted with implementation and testing.