Skip to content

Missing-key error links to the API keys page (0.21.2) - #49

Merged
shawnsong530 merged 1 commit into
mainfrom
claude/missing-key-link
Oct 27, 2026
Merged

shawnsong530 merged 1 commit into
mainfrom
claude/missing-key-link

Conversation

@shawnsong530

Copy link
Copy Markdown
Contributor

中文:Python SDK 缺 Key 时的报错附上建 Key 的链接

From the external "Sonilo defaults audit" (2026-10-26), item B5: sonilo-mcp and the CLI end their missing-key error with the API keys page, the SDK did not.

SoniloError: Missing API key: pass api_key= or set the SONILO_API_KEY environment variable. Create a key at https://platform.sonilo.com/dashboard/api-keys
  • _resolve_api_key is shared by Sonilo and AsyncSonilo, so both get it. The URL is sonilo._client.API_KEYS_URL.
  • New test covers both clients.
  • Version 0.21.2 (pyproject.toml and _version.py). After merge, push tag v0.21.2 to publish.

Tests: pytest 360 passed, pytest sonilo-cli 182 passed.


Generated by Claude Code

`Sonilo()` and `AsyncSonilo()` without a key said only "pass api_key= or set
SONILO_API_KEY". It now ends with "Create a key at
https://platform.sonilo.com/dashboard/api-keys", the link sonilo-mcp and the
CLI already print, so an agent can pass it to the user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WSkS5LCgJEdFadEYSV9XH8
@lightsage-app

lightsage-app Bot commented Oct 27, 2026

Copy link
Copy Markdown

Lightsage docs evals

Waiting for the staging docs URL before running evals.

Lightsage will start the selected PR evals automatically when GitHub reports a successful docs deployment for this PR. This usually happens within 15 minutes.

Commit: 829cb27
Status: waiting for staging docs URL

@shawnsong530
shawnsong530 merged commit b6736c4 into main Oct 27, 2026
2 checks passed
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