Skip to content

v1.4.0

Choose a tag to compare

@stainless-app stainless-app released this 26 Jan 12:01
cef31e8

1.4.0 (2026-01-24)

Full Changelog: v1.3.0...v1.4.0

Features

Bug Fixes

  • client: close streams without requiring full consumption (c9f7310)
  • compat with Python 3.14 (566b7bf)
  • compat: update signatures of model_dump and model_dump_json for Pydantic v1 (1417077)
  • ensure streams are always closed (94cd458)
  • types: allow pyright to infer TypedDict types within SequenceNotStr (5663881)
  • use async_to_httpx_files in patch method (132c94c)

Chores

  • add missing docstrings (003db35)
  • add Python 3.14 classifier and testing (9acba74)
  • api: changed default client name to NotDiamond (28f6709)
  • bump httpx-aiohttp version to 0.1.9 (37d5de2)
  • ci: upgrade actions/github-script (352e6a8)
  • deps: mypy 1.18.1 has a regression, pin to 1.17 (578a964)
  • docs: update README with new prompt adaptation examples and enable prototype mode (bcaa9e8)
  • docs: use environment variables for authentication in code snippets (4493c72)
  • internal/tests: avoid race condition with implicit client cleanup (14e720b)
  • internal: add --fix argument to lint script (448c196)
  • internal: add missing files argument to base client (47b12a0)
  • internal: codegen related update (b26fdeb)
  • internal: detect missing future annotations with ruff (316a749)
  • internal: grammar fix (it's -> its) (6d37a12)
  • internal: update actions/checkout version (15211cd)
  • package: drop Python 3.8 support (8f6e2eb)
  • remove commented-out line for bot notification exclusion in Slack PR workflow (e0c337e)
  • remove condition to exclude bot users from Slack notification in PR workflow (776b597)
  • speedup initial import (b3ceca0)
  • update lockfile (8b040bc)
  • update SDK settings (227346c)
  • update SDK settings (ba3968b)
  • update SDK settings (26ae314)
  • update SDK settings (ecc0dc6)

Documentation

  • update README to include example of initializing NotDiamond client with API key (3f3a1e5)
  • update README to reflect changes in Prompt Adaptation details and streamline key features section (71f97f8)
  • update README to reflect changes in prompt adaptation method names and remove outdated async usage section (c793b18)
  • update README to remove outdated Prompt Adaptation section and add new examples for intelligent model routing and training a custom router. (17b08b6)

Refactors

  • README: update terminology from "Prompt Adaptation" to "Prompt Optimization" and adjust related code examples (7cb7d97)