chore: 🐝 Update SDK - Generate 0.10.0#317
Conversation
* `open_router.beta.responses.send()`: * `request` **Changed** **Breaking**⚠️ * `response` **Changed** **Breaking**⚠️ * `open_router.presets.create_presets_responses()`: `request` **Changed** **Breaking**⚠️ * `open_router.presets.create_presets_chat_completions()`: `request` **Changed** **Breaking**⚠️ * `open_router.chat.send()`: `request` **Changed** **Breaking**⚠️ * `open_router.files.delete()`: **Added** * `open_router.files.retrieve()`: **Added** * `open_router.files.download()`: **Added** * `open_router.models.get()`: **Added** * `open_router.datasets.get_benchmarks_artificial_analysis()`: **Added** * `open_router.o_auth.create_auth_code()`: * `request.workspace_id` **Added** * `error.status[403]` **Added** * `open_router.files.upload()`: **Added** * `open_router.embeddings.list_models()`: `response.data.[].benchmarks` **Added** * `open_router.models.list()`: * `request` **Changed** * `response.data.[].benchmarks` **Added** * `open_router.models.list_for_user()`: `response.data.[].benchmarks` **Added** * `open_router.files.list()`: **Added** * `open_router.presets.create_presets_messages()`: `request.fallbacks` **Added** * `open_router.datasets.get_benchmarks_design_arena()`: **Added**
d4d8c98 to
3f1286b
Compare
There was a problem hiding this comment.
Perry's Review
Speakeasy regen bumping the SDK to 0.10.0 — adds the Files API (upload/download/list/delete/metadata), Datasets plus benchmarks (Artificial Analysis / Design Arena) endpoints, an optional workspace_id on the auth-code key creation request, and a relaxed callback-URL docstring for local CLI tools.
Verdict: 💬 Comments / questions
Details
Re-review: force-pushed regen of the same change I reviewed yesterday at d4d8c98. Re-walked the full diff; the one open thread below still stands and no net-new issues surfaced.
Risk: 🟢 Low — fully generated SDK code (every file carries the Speakeasy DO NOT EDIT header). The lone breaking change is a renamed public export; all other changes are additive (new endpoints, new optional fields, union reordering).
CI: no checks reported on the head SHA (generated-SDK regen; an empty run-tests trigger commit is present).
Findings: no net-new findings this push. One unresolved suggestion from the prior review remains valid and is not re-posted (already an open thread): the public Version alias in the rankings-daily-meta component was renamed to RankingsDailyMetaVersion and dropped from the components package export list, so importing Version from openrouter.components now raises ImportError.
SemVer: a breaking change in a 0.x minor bump (0.9.2 → 0.10.0) is policy-compliant — major-version-zero treats the public API as unstable, and ecosystem convention maps the middle digit to breaking changes. No blocker; the rename itself is more correct.
Ask: since this is auto-generated, document the rename in the release notes so consumers pinning the old name migrate Version → RankingsDailyMetaVersion rather than hitting a silent ImportError. Do not hand-edit the generated Python — change the OpenAPI source or annotate the release.
Codex (gpt-5.5): no additional findings (run produced no usable output within the time budget).
Research: SemVer 2.0.0 §4 — major version zero confirms 0.x breaking changes are spec-compliant; Speakeasy regen methodology confirms generated files must not be hand-edited — fixes belong in the spec or release notes.
Security: no concerns. Secret scan on added lines: clean (docs read the key from the environment). The auth-code change (new optional workspace field plus relaxed callback-URL doc) is additive in a client SDK that mirrors the spec — no safety gate removed; the server enforces authz.
Test coverage: no committed test suite in this generated SDK; nothing to assess on a regen.
Unresolved threads: 1 — the prior Version-rename suggestion (still open, re-confirmed against head).
Scope: first snapshot for this PR (full) — re-review of force-pushed regen; prior verdict recalled via mnemosyne.
Review: tier=large · model=claude-opus-latest · score=?
SDK update
Versioning
Version Bump Type: [minor] - 🤖 (automated)
Tip
If updates to your OpenAPI document introduce breaking changes, be sure to update the
info.versionfield to trigger the correct version bump.Speakeasy supports manual control of SDK versioning through multiple methods.
Python SDK Changes:
open_router.beta.responses.send():requestChanged BreakingresponseChanged Breakingopen_router.presets.create_presets_responses():requestChanged Breakingopen_router.presets.create_presets_chat_completions():requestChanged Breakingopen_router.chat.send():requestChanged Breakingopen_router.files.delete(): Addedopen_router.files.retrieve(): Addedopen_router.files.download(): Addedopen_router.models.get(): Addedopen_router.datasets.get_benchmarks_artificial_analysis(): Addedopen_router.o_auth.create_auth_code():request.workspace_idAddederror.status[403]Addedopen_router.files.upload(): Addedopen_router.embeddings.list_models():response.data.[].benchmarksAddedopen_router.models.list():requestChangedresponse.data.[].benchmarksAddedopen_router.models.list_for_user():response.data.[].benchmarksAddedopen_router.files.list(): Addedopen_router.presets.create_presets_messages():request.fallbacksAddedopen_router.datasets.get_benchmarks_design_arena(): AddedOpenAPI Change Summary
PYTHON CHANGELOG
multipartFileContentType: 1.0.0 - 2024-07-04
🐝 New Features
uploadStreams: 1.0.0 - 2024-07-04
🐝 New Features
Based on Speakeasy CLI 1.680.0
Last updated by Speakeasy workflow