Skip to content

cendor-sdk 1.6.2

Choose a tag to compare

@github-actions github-actions released this 13 Jul 18:14

Provider-auth hardening: the first-run "where's my key?" paper cuts now fail loud and actionable.
No change for correct code.

Changed

  • A live provider call that fails to authenticate while the keyless placeholder is in play now
    raises MissingAPIKeyError (exported from cendor.sdk) naming the exact env var to set
    (OPENAI_API_KEY, ANTHROPIC_API_KEY, AZURE_OPENAI_API_KEY, HF_TOKEN) and linking the docs,
    instead of the provider's bare 401. It never fires when a real key or a pre-built client= was
    supplied, on non-auth errors, or on keyless offline flows (cassette replay, pre-flight blocks).
  • Bedrock: passing api_key= now raises a clear error (Bedrock authenticates via the AWS
    credential chain, not an API key); base_url= maps to boto3's endpoint_url.
  • Ollama: base_url= maps to the ollama client's host= (it previously collided with the
    underlying httpx client and crashed); passing api_key= raises a clear "local, no key" error.