Litechain

Latest version: v0.1.6.post1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.7

**BREAKING:** LiteChain was renamed to LangStream! For more details check out 4

To migrate it should be easy enough, change the dependency and imports from `litechain` to `langstream`, and replace all matches of `chain` to `stream` and matches of `Chain` to `Stream` in your project

0.1.6

- Add `.pipe()` operator https://github.com/rogeriochaves/litechain/commit/26033e8a96e40fa98866df7604de7d2fe038d25a ([docs](https://rogeriochaves.github.io/litechain/docs/chain-basics/composing_chains#pipe))
- Add `.filter()` operator https://github.com/rogeriochaves/litechain/commit/33b18001c7757a8d734fa34a73a9a3031788cb29 ([docs](https://rogeriochaves.github.io/litechain/docs/chain-basics/composing_chains#filter))

0.1.5

- Put a short timeout and retry mechanism on OpenAI chains to make them more reliable, since API hangs or failures are not very unusual (see 738b707237cce0890b8f9c8309f7aa4dda881117)

0.1.4

- Add `on_error` method on chains for error handling (See 3)
- Removed unused generic type from `ChainOutput` (See 1)

0.1.3

BREAKING: This release REMOVES the "magical" py2gpt function conversion on OpenAI function calls, it accepts only raw OpenAI function schemas now, more details on https://github.com/rogeriochaves/litechain/pull/2

0.1.2

- Add `name` key to OpenAIChatMessage and OpenAIChatDelta, as it is necessary for function calls and storing it back on memory - thanks rbdixon on Discord!

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.