Repository navigation
fix(modality): serve Dim account image models and keep the snapshot consistent #1916
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4eff4ce
fix(modality): serve Dim account image models and keep the snapshot c…
zerob13 9f9b73f
Merge remote-tracking branch 'origin/main' into zerob13/1887-modality…
zerob13 28c186a
Merge remote-tracking branch 'origin/main' into zerob13/1887-modality…
zerob13 c77746e
fix(modality): avoid relay retries and report operation-specific avai…
zerob13 d945a5f
Merge remote-tracking branch 'origin/main' into zerob13/1887-modality…
zerob13 3048b06
Merge commit 'e4d981bd2c168c900c24b72968c4ffc6c4db58fa' into dimagent…
zerob13 f6cf5ca
fix(modality): classify offline adapters by operation
zerob13 ac2c7f6
test(modality): simplify the scripted relay responder
zerob13 1f38d86
docs(modality): align operation defaults with declared options
zerob13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This row makes the Dim account relay reach the image call path, but
image_options(crates/dim-modality-aimux/src/job.rs:51-92) leavesImageCallOptions.max_retriesat its default. The locked aimux-core 0.6.1 (src/image_model.rs:269-281,src/retry.rs:12,41,87) retries twice, and the locked aimux-provider-utils 0.6.1 (src/post_to_api.rs:82,128-141) marks the 30-second exchange timeout retryable. A POST the relay received but did not finish within 30 seconds is sent again, so one click can bill up to three generations. Setoptions.max_retries = Some(0)for this path, or wait for an aimux idempotency or timeout policy; add a scripted transport test that receives the POST and times out, asserting one send.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in f6cf5ca.
crates/dim-modality-aimux/src/job.rs:54-56setsmax_retries = Some(0)for thedimcode-api-oauthcatalog, andthe_dim_account_relay_does_not_retry_a_timed_out_post(crates/dim-modality-aimux/tests/adapter.rs:630-659) accepts one POST, stalls the response through the exchange timeout, and asserts exactly one request. The test passes locally at ac2c7f6.