Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs(manage): fix create-key reference nesting and stale version mentions - #843

Merged
GregHolmes merged 1 commit into
mainfrom
gh/create-key-doc-nits
Dec 4, 2026
Merged

GregHolmes merged 1 commit into
mainfrom
gh/create-key-doc-nits

Conversation

@GregHolmes

Copy link
Copy Markdown
Contributor

Follow-up to #840, covering @jasondielman-dg's non-blocking nits.

  • reference.md: removes the unclosed <dl><dd> opener before **comment:**, so the keys.create parameters after project_id render at the same depth again.
  • AGENTS.md: the client_wrapper.py entry no longer pins the fallback to a version number. Release Please bumps it on every release, so any hardcoded number goes stale.
  • AGENTS.md, _build_create_key_body docstring, test_create_key_legacy_request.py module docstring: "through 7.20" becomes "7.21 and earlier", since 7.21.0 still shipped the legacy request= shape.

No executable code changes. tests/custom/test_create_key_legacy_request.py: 40 passed.

…entions

Drop the unclosed <dl><dd> opener before the keys.create comment
parameter so the parameters after project_id render at the right depth.

7.21.0 still shipped the legacy request= call shape, so the compat
notes now say 7.21 and earlier. AGENTS.md no longer pins the
client_wrapper.py fallback to a number Release Please will change.
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.deepgram 95% 91% 0 ✔
src.deepgram.agent 100% 100% 0 ✔
src.deepgram.agent.v1 98% 100% 0 ✔
src.deepgram.agent.v1.settings 100% 100% 0 ✔
src.deepgram.agent.v1.settings.think 100% 100% 0 ✔
src.deepgram.agent.v1.settings.think.models 97% 100% 0 ✔
src.deepgram.auth 100% 100% 0 ✔
src.deepgram.auth.v1 100% 100% 0 ✔
src.deepgram.auth.v1.tokens 97% 100% 0 ✔
src.deepgram.core 89% 84% 0 ➖
src.deepgram.errors 100% 100% 0 ✔
src.deepgram.helpers 97% 92% 0 ✔
src.deepgram.listen 100% 100% 0 ✔
src.deepgram.listen.v1 98% 93% 0 ✔
src.deepgram.listen.v1.media 97% 100% 0 ✔
src.deepgram.listen.v2 98% 93% 0 ✔
src.deepgram.manage 100% 100% 0 ✔
src.deepgram.manage.v1 100% 100% 0 ✔
src.deepgram.manage.v1.models 96% 100% 0 ✔
src.deepgram.manage.v1.projects 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing 100% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.balances 96% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.breakdown 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.fields 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.purchases 97% 100% 0 ✔
src.deepgram.manage.v1.projects.keys 96% 100% 0 ✔
src.deepgram.manage.v1.projects.members 97% 100% 0 ✔
src.deepgram.manage.v1.projects.members.invites 96% 100% 0 ✔
src.deepgram.manage.v1.projects.members.scopes 96% 100% 0 ✔
src.deepgram.manage.v1.projects.models 96% 100% 0 ✔
src.deepgram.manage.v1.projects.usage 98% 100% 0 ✔
src.deepgram.manage.v1.projects.usage.breakdown 97% 100% 0 ✔
src.deepgram.manage.v1.projects.usage.fields 97% 100% 0 ✔
src.deepgram.read 100% 100% 0 ✔
src.deepgram.read.v1 100% 100% 0 ✔
src.deepgram.read.v1.text 98% 100% 0 ✔
src.deepgram.self_hosted 100% 100% 0 ✔
src.deepgram.self_hosted.v1 100% 100% 0 ✔
src.deepgram.self_hosted.v1.distribution_credentials 96% 100% 0 ✔
src.deepgram.speak 100% 100% 0 ✔
src.deepgram.speak.v1 98% 97% 0 ✔
src.deepgram.speak.v1.audio 91% 80% 0 ✔
src.deepgram.speak.v2 98% 93% 0 ✔
src.deepgram.speak.v2.audio 100% 100% 0 ✔
src.deepgram.voice_agent 100% 100% 0 ✔
src.deepgram.voice_agent.configurations 95% 100% 0 ✔
src.deepgram.voice_agent.variables 95% 100% 0 ✔
Summary 96% (6714 / 7023) 92% (1495 / 1622) 0 ✔

Scope: hand-maintained SDK logic. Fern-generated data models (types/, requests/), package __init__.py files, version.py, and the unused core/http_sse/ scaffolding are excluded — see .coveragerc. Unscoped whole-package coverage is ~70%.

@jasondielman-dg jasondielman-dg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, with two small nits. With the extra opener gone, reference.md now renders every keys.create parameter at the same level as project_id, and the compat notes now match the release history: 7.21.0 was tagged before #840 merged, so it still shipped the legacy request= call shape.

What I checked

  • Does the keys.create reference render flat now? Yes. The section has 14 <dl>/</dl> and 14 <dd>/</dd> (it was 15/14 on main), all eight parameters sit at the same depth as keys.get's, and no other section in the file is unbalanced. reference.md is in .fernignore, so the fix survives the next regen.
  • Is "7.21 and earlier" right? Yes. v7.21.0 is f7283f1, which comes before #840 on main, and client_wrapper.py carries 7.21.0 to match the release manifest.
  • Does anything executable change? No. raw_client.py changes one docstring line and one comment, and the test file changes only its module docstring. tests/custom/test_create_key_legacy_request.py: 40 passed in Docker (python:3.12-slim), matching the PR body. CI is green on 3.10–3.13.

Nits

  • .fernignore:127, .fernignore:130, and tests/custom/test_create_key_legacy_request.py:11, :226, :242 still say 7.20 ("written against 7.20 and earlier", "reached the JSON encoder on 7.20", "sent an empty body on 7.20", "exactly as they did on 7.20"). Could we change these to "7.21 and earlier" so all the create-key notes give the same version?
  • AGENTS.md:86: the parenthetical splits the subject from its verb. Optional rewording: "The retained fallback carries # x-release-please-version and always holds the latest published version (no number is pinned here, because Release Please changes it on every release), and .github/release-please-config.json …"

Outside this PR: nothing to coordinate. The JS follow-up (deepgram-js-sdk #615) is reviewed separately.

@GregHolmes
GregHolmes merged commit 71bb551 into main Dec 4, 2026
10 checks passed
@GregHolmes
GregHolmes deleted the gh/create-key-doc-nits branch December 4, 2026 12:51
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.

2 participants