Skip to content

Support requesting the advanced Model Target Web API scope#1394

Merged
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/github-issue-1393
May 22, 2026
Merged

Support requesting the advanced Model Target Web API scope#1394
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/github-issue-1393

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

Summary

  • Adds a scopes argument to get_model_target_web_api_details, defaulting to the existing standard-only behavior.
  • Exposes MODEL_TARGET_WEB_API_STANDARD_SCOPES / MODEL_TARGET_WEB_API_ADVANCED_SCOPES constants so Enterprise callers can request the advanced Model Target scope. Un-entitled scopes surface as a clear RuntimeError from the existing credentials API error path.

Closes #1393.

Test plan

  • CI

🤖 Generated with Claude Code

Adds a ``scopes`` argument to ``get_model_target_web_api_details`` and
exposes ``MODEL_TARGET_WEB_API_STANDARD_SCOPES`` /
``MODEL_TARGET_WEB_API_ADVANCED_SCOPES`` so Enterprise callers can
request the advanced Model Target scope. Closes #1393.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sphinx (nitpicky mode) could not resolve ``:data:`` cross-references to
the module-level ``MODEL_TARGET_WEB_API_*_SCOPES`` constants, failing
the docs build. Switch to plain literal backticks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@adamtheturtle adamtheturtle deployed to development May 22, 2026 06:10 — with GitHub Actions Active
@adamtheturtle adamtheturtle merged commit 6daaa46 into main May 22, 2026
34 of 36 checks passed
@adamtheturtle adamtheturtle deleted the adamtheturtle/github-issue-1393 branch May 22, 2026 07:29
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.

Support requesting the advanced Model Target Web API scope

1 participant