Chatlab

Latest version: v2.1.1

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

Scan your dependencies

Page 1 of 4

2.1.1

Fixed
- Fixed a bug where the final render of a tool call wasn't using the custom render.

2.1.0

Added
- New `tools` namespace to replace the `builtins` namespace.
- Simplified `Palette` class in `colors.py` for displaying color palettes, now leveraging Pydantic for validation.

Changed
- Default model in `Chat` class constructor now uses the `GPT_3_5_TURBO` enum.
- Migrated `run_cell` to `run_python` to avoid naming confusion and deprecated `run_cell`.
- Updated documentation and examples to reflect the new `tools` namespace and usage patterns.
- Removed `__required__` from `extract_model_from_function` in `registry.py` to suppress Pydantic warnings.

Fixed
- Ensured the final tool call result properly updates the UI to reflect the outcome of tool execution.

2.0.0

- Support parallel tool calling by default in `Chat`.
- Legacy support for function calling is available by passing `legacy_function_calling=True` to the `Chat` constructor.
- :new: `incremental_display` decorator (see https://github.com/rgbkrk/chatlab/pull/136) that allows you to stream visualizations to the user as the model fills out function arguments.

![building a graph quickly](https://private-user-images.githubusercontent.com/836375/308375331-8953f679-5051-4416-b8a1-0994bde8b032.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkwODIyMjEsIm5iZiI6MTcwOTA4MTkyMSwicGF0aCI6Ii84MzYzNzUvMzA4Mzc1MzMxLTg5NTNmNjc5LTUwNTEtNDQxNi1iOGExLTA5OTRiZGU4YjAzMi5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyOFQwMDU4NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNmIxMWIzMTczM2VmYzA0M2VlMDY1MmE0YmE0ODUwZjJjNzMxYjIzYjc1MDI1MmJjYTBhNWZhMzg5MjExZThmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.hhQqvJtvm3cI8W-JTuQiu8rryl97O_xLKf7dpR2QFSQ)

1.3.0

- Support tool call format from `FunctionRegistry`. Enables parallel function calling (note: not in `Chat` yet). https://github.com/rgbkrk/chatlab/pull/122

1.2.1

- Drop Noteable builtin
- ⏃ Automatically instantiate pydantic models when they are passed as parameters to a function call

1.1.1

- Support setting a custom `base_url`

python
from chatlab import Chat
chat = Chat(
base_url="http://localhost:8000/v1",
api_key="functionary"
)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.