feat(spatius): forward avatar session extra params, update spatius to 1.0.5 - #2286
Open
3DRX wants to merge 1 commit into
Open
feat(spatius): forward avatar session extra params, update spatius to 1.0.5#22863DRX wants to merge 1 commit into
3DRX wants to merge 1 commit into
Conversation
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.
Summary
spatius[opus]dependency from1.0.4to1.0.5and addextra_paramsto the extension config, forwarding it to the Spatius SDK'snew_avatar_sessionso callers can pass server-side session options (e.g.server_post_process) through the extension. The dict is copied inupdate_params()and again at session creation to avoid aliasing caller/config state.extra_paramsis exposed as an openobjectin the manifest property schema (params.extra_params) and defaults to{}inproperty.json.0.2.5.Region default change
spatius 1.0.5 changes the default ingress region behavior: when no region is specified, it is no longer fixed to
us-west— the SDK resolves the region automatically via the Spatius global bootstrap API (automatic regional scheduling). If bootstrap resolution fails, it falls back to the last cached region orus-west.The extension only passes
regionto the SDK when explicitly configured, so the newautobehavior is picked up with no additional code; the config log now reportsregion=(auto)when unset. Setparams.region(e.g.us-west) to pin a concrete region.Tests
tests/test_config.pycovering theextra_paramscopy semantics and empty-default behavior.Example
{ "params": { "spatius_api_key": "${env:SPATIUS_API_KEY|}", "spatius_app_id": "${env:SPATIUS_APP_ID|}", "spatius_avatar_id": "...", "extra_params": { "server_post_process": "false" } } }