Skip to content

feat: add optional Atlas Cloud image provider - #23

Open
binyangzhu000-sudo wants to merge 2 commits into
feiskyer:mainfrom
binyangzhu000-sudo:codex/add-atlas-cloud-provider
Open

binyangzhu000-sudo wants to merge 2 commits into
feiskyer:mainfrom
binyangzhu000-sudo:codex/add-atlas-cloud-provider

Conversation

@binyangzhu000-sudo

Copy link
Copy Markdown

Summary

  • add an explicit --provider atlas path while keeping Gemini as the default
  • submit Atlas Cloud Nano Banana text-to-image jobs once and poll predictions with bounded timing
  • document provider-specific credentials, model defaults, options, and current text-to-image limit
  • add focused tests for endpoint selection, async polling, and no-retry submission behavior

Testing

  • python3 -m unittest skills/nanobanana-skill/test_nanobanana.py -v
  • python3 -m py_compile skills/nanobanana-skill/nanobanana.py skills/nanobanana-skill/test_nanobanana.py
  • python3 -m scripts.quick_validate ../nanobanana-skill from skills/skill-creator
  • uvx ruff check skills/nanobanana-skill/nanobanana.py skills/nanobanana-skill/test_nanobanana.py
  • uvx ruff format --check skills/nanobanana-skill/nanobanana.py skills/nanobanana-skill/test_nanobanana.py

The live Atlas model catalog and input schema were checked before implementation. One live generation submit returned HTTP 402 before creating a prediction and was not retried.

Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
…ud-provider

# Conflicts:
#	skills/nanobanana-skill/SKILL.md
#	skills/nanobanana-skill/nanobanana.py
@binyangzhu000-sudo

Copy link
Copy Markdown
Author

Merged current main into this branch (plain merge, no force-push). Upstream changed the Gemini defaults (gemini-nano-banana-2.1, a closed set of four models, and legacy_model = args.model.startswith('gemini-2.5')). Two resolutions: (1) --model stays free-form so Atlas Cloud model IDs work, so the Gemini choices moved from argparse choices to an explicit check after parsing (Unsupported Gemini model error), and DEFAULT_GEMINI_MODEL is now upstream's gemini-nano-banana-2.1; (2) git merged the legacy check without a conflict, but with this PR's optional --model it would crash on None.startswith for every default Gemini run, so it now uses the resolved model variable. SKILL.md lists upstream's Gemini models plus the Atlas default.

Verified: pytest skills/nanobanana-skill/test_nanobanana.py -> 5 passed: the 2 Atlas tests plus 3 new Gemini-path tests (default model keeps search/thinking, gemini-2.5-flash-image disables both, an Atlas model ID is rejected for Gemini). Disclosure: I work at Atlas Cloud.

This branch has not been deployed

No deployments
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.

1 participant