Repository navigation
posthog-v7.91.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- 84158304 Honor
GEMINI_API_KEYwhen initializing the synchronous and asynchronous Gemini clients, afterGOOGLE_API_KEYand before the legacyAPI_KEYfallback. — Thanks @pcbeingused333! - ade1ff99
posthog.ai.anthropic:messages.stream()(sync and async) now captures an$ai_generationevent with$ai_is_errorwhen the initial request fails, for example with a 401 or a connection error. Before, onlymessages.create(stream=True)captured that failure, so errors raised on entering thestream()context manager were never reported. — Thanks @pcbeingused333! - 92fae510 An Anthropic error that arrives as an
errorevent inside a stream, such asoverloaded_error, is no longer recorded with$ai_http_status: 200. The anthropic SDK raises it with the stream's 200 status, so$ai_http_statusnow comes from the error type (529 foroverloaded_error, 429 forrate_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 🎉!