Chatlab

Latest version: v2.1.1

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

Scan your dependencies

Page 2 of 4

1.0.3

Fixed

- ๐Ÿ› input prompts were appearing after assistant and function calls

1.0.1

Documented

- New Knowledge Graph example
- Switched all docs to [chatlab.dev](https://chatlab.dev)
- No more `--pre` required for installs

1.0.0

Added

- ๐Ÿ“š Documentation now available at [chatlab.dev](https://chatlab.dev)
- ๐Ÿ“š Pre-release Documentation now available at [pre.chatlab.dev](https://pre.chatlab.dev)
- ๐ŸŽ›๏ธ New option `replace_hallucinated_python` to replace any hallucinated python function with a custom one. This allows you to create notebook cells, run IPython, or even shell out to a regular python interpreter.
- ๐Ÿช„ Introduced `make_magic` on a `Chat` so that you can use a current chat as a cell magic in IPython and Jupyter notebooks
- โฉ Accept async functions as chat functions
- ๐Ÿ‘‰๐Ÿป You _MUST_ now call `await chat()` instead of just `chat()` now that chat is async
- ๐Ÿ“— New experimental builtin: Noteable. Create notebooks on Noteable like you can via ChatGPT Plugins with even more flexibility.
- ๐Ÿงฉ Accept collections of functions to `Chat` and `FunctionRegistry` to register multiple functions at once
- ๐Ÿงฉ Enhanced type support in the registry, including handling of `Union`, `List`, `Dict`, `Literal`, and `Enum` types.
- ๐ŸŽจ Added a decorator for registering functions with a schema, allowing more flexible function registration.
- ๐Ÿ“‘ Added `registry.get_schema` method to retrieve a function schema by name.

- [Builtins] ๐Ÿ“ Chat File functions:

- `list_files`: List all files in a directory.
- `get_file_size`: Get the size of a file.
- `is_file`: Check if a path points to a file.
- `is_directory`: Check if a path points to a directory.
- `write_file`: Write content to a file.
- `read_file`: Read content from a file.

- [Builtins] ๐Ÿš Chat Shell Functions:

- `run_shell_command`: Run a shell command and return the output.

Changed

- ๐Ÿ”„ `chatlab.Chat` is now `chatlab.Conversation` to improve readability
- โš ๏ธ Deprecated `chatlab.Conversation`
- ๐Ÿ”„ `submit` is now an async function to allow registering functions
- ๐Ÿ“œ Improved UI: Scrollbars for function inputs and outputs now only appear on the x-axis when content is too large
- ๐Ÿ›‘๐Ÿ”™ Enhanced error handling: Python interpreter traceback is no longer displayed in the notebook when it is included in the ChatLab output pane.
- ๐Ÿ The python builtin's name has been changed to `run_python`
- ๐Ÿงน Refactored `generate_function_schema` and `register` methods in the registry to simplify and enhance functionality.
- ๐Ÿšจ Updated error handling and messages related to type annotations.

Deprecated

- โš ๏ธ Both `chatlab.Session` and `chatlab.Conversation` are now deprecated in favor of `chatlab.Chat`

0.16.0

Changed

- ๐Ÿ๐Ÿ”™ Send a traceback to the LLM when an exception occurs in the builtin python interpreter

0.15.3

Changed

- ๐Ÿ“ฆ Update description and classifiers for PyPI
- โŒ Remove unused packages

0.15.2

Changed

- ๐Ÿ“ฆ Include universal wheels in build

Page 2 of 4

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.