v4.0.2
What's Changed
- fix(openai): correct token details field names for Response API usage by @zachrobo1 in https://github.com/langfuse/langfuse-python/pull/1564
- fix(openai): include responses instructions in captured prompt by @D-Joey-G in https://github.com/langfuse/langfuse-python/pull/1565
- fix(observe): Handle asyncio.CancelledError in exception blocks by @jinohkang-theori in https://github.com/langfuse/langfuse-python/pull/1566
- chore: relax packaging constraint to <27 by @hassiebp in https://github.com/langfuse/langfuse-python/pull/1570
- feat(api): update API spec from langfuse/langfuse a6c38c6 by @langfuse-bot in https://github.com/langfuse/langfuse-python/pull/1574
- chore(deps): bump requests from 2.32.5 to 2.33.0 by @dependabot[bot] in https://github.com/langfuse/langfuse-python/pull/1579
- fix(scores): parse session ID correctly by @hassiebp in https://github.com/langfuse/langfuse-python/pull/1582
- chore: fix flaky langchain tests by @hassiebp in https://github.com/langfuse/langfuse-python/pull/1584
- fix(experiments): maintain propagated context in async experiments by @hassiebp in https://github.com/langfuse/langfuse-python/pull/1587
New Contributors
- @zachrobo1 made their first contribution in https://github.com/langfuse/langfuse-python/pull/1564
- @D-Joey-G made their first contribution in https://github.com/langfuse/langfuse-python/pull/1565
- @jinohkang-theori made their first contribution in https://github.com/langfuse/langfuse-python/pull/1566
Full Changelog: https://github.com/langfuse/langfuse-python/compare/v4.0.1...v4.0.2
Fetched April 7, 2026

