Skip to content

Releases: zhudotexe/kani

v0.2.0

29 Aug 14:44
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Improvements

  • Engines: Added Engine.function_token_reserve() to dynamically reserve a number of tokens for a function list
  • OpenAI: The OpenAIEngine now reads the OPENAI_API_KEY environment variable by default if no api key or client is specified
  • Documentation improvements (polymorphism, mixins, extension packages)

v0.1.0

10 Aug 19:06
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

BREAKING CHANGES

These should hopefully be the last set of breaking changes until v1.0. We're finalizing some of the attribute names for clarity and publication.

  • renamed Kani.always_include_messages to Kani.always_included_messages

Features & Improvements

  • @ai_functions with synchronous signatures now run in a thread pool in order to prevent blocking the asyncio event loop
  • OpenAI: Added the ability to specify the API base and additional headers (e.g. for proxy APIs).
  • Various documentation improvements

v0.0.3

04 Aug 17:23
Compare
Choose a tag to compare
v0.0.3 Pre-release
Pre-release

BREAKING CHANGES

  • Renamed Kani.get_truncated_chat_history to Kani.get_prompt

Additions & Improvements

  • Added CTransformersEngine and LlamaCTransformersEngine (thanks @Maknee!)
  • Added a lower-level Kani.get_model_completion to make a prediction at the current chat state (without modifying the chat history)
  • Added the auto_truncate param to @ai_function to opt in to kani trimming long responses from a function (i.e., responses that do not fit in a model's context)
  • Improved the internal handling of tokens when the chat history is directly modified
  • ChatMessage.[role]() classmethods now pass kwargs to the constructor
  • LLaMA: Improved the fidelity of non-strict-mode LLaMA prompting
  • OpenAI: Added support for specifying an OpenAI organization and configuring retry
  • Many documentation improvements

Fixes

  • OpenAI message length could return too short on messages with no content
  • Other minor fixes and improvements

v0.0.2

20 Jul 03:33
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release
  • Add chat_in_terminal_async for async environments (e.g. Google Colab)
  • Add quickstart Colab notebook

v0.0.1

20 Jul 01:58
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

Initial release!