Skip to content

posthog-v7.91.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:10
Immutable release. Only release title and notes can be modified.
eef61f6

Patch changes

  • 84158304 Honor GEMINI_API_KEY when initializing the synchronous and asynchronous Gemini clients, after GOOGLE_API_KEY and before the legacy API_KEY fallback. — Thanks @pcbeingused333!
  • ade1ff99 posthog.ai.anthropic: messages.stream() (sync and async) now captures an $ai_generation event with $ai_is_error when the initial request fails, for example with a 401 or a connection error. Before, only messages.create(stream=True) captured that failure, so errors raised on entering the stream() context manager were never reported. — Thanks @pcbeingused333!
  • 92fae510 An Anthropic error that arrives as an error event inside a stream, such as overloaded_error, is no longer recorded with $ai_http_status: 200. The anthropic SDK raises it with the stream's 200 status, so $ai_http_status now comes from the error type (529 for overloaded_error, 429 for rate_limit_error), or is 0 for an unknown type. This applies to the LangChain callback handler and to every capture that reads the status through _get_http_status. — Thanks @jaeminbird!
  • 53405145 Claude Agent SDK: give each generation the tool results it was called with, and keep every text and tool-use block of a response in its $ai_output_choices. — Thanks @MaiAditya for your first contribution 🎉!