chatlas-0.9.2


توضیحات

A simple and consistent interface for chatting with LLMs
ویژگی مقدار
سیستم عامل -
نام فایل chatlas-0.9.2
نام chatlas
نسخه کتابخانه 0.9.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Carson Sievert <carson@posit.co>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/chatlas/
مجوز -
# chatlas <a href="https://posit-dev.github.io/chatlas"><img src="https://posit-dev.github.io/chatlas/logos/hex/logo.png" align="right" height="138" alt="chatlas website" /></a> <p> <!-- badges start --> <a href="https://pypi.org/project/chatlas/"><img alt="PyPI" src="https://img.shields.io/pypi/v/chatlas?logo=python&logoColor=white&color=orange"></a> <a href="https://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License"></a> <a href="https://pypi.org/project/chatlas"><img src="https://img.shields.io/pypi/pyversions/chatlas.svg" alt="versions"></a> <a href="https://github.com/posit-dev/chatlas"><img src="https://github.com/posit-dev/chatlas/actions/workflows/test.yml/badge.svg?branch=main" alt="Python Tests"></a> <!-- badges end --> </p> Your friendly guide to building LLM chat apps in Python with less effort and more clarity. ## Install Install the latest stable release [from PyPI](https://pypi.org/project/chatlas/): ```bash pip install -U chatlas ``` Or, install the latest development version from GitHub: ```bash pip install -U git+https://github.com/posit-dev/chatlas ``` ## Quick start Get started in 3 simple steps: 1. Choose a model provider, such as [ChatOpenAI](https://posit-dev.github.io/chatlas/reference/ChatOpenAI.html) or [ChatAnthropic](https://posit-dev.github.io/chatlas/reference/ChatAnthropic.html). 2. Visit the provider's [reference](https://posit-dev.github.io/chatlas/reference) page to get setup with necessary credentials. 3. Create the relevant `Chat` client and start chatting! ```python from chatlas import ChatOpenAI # Optional (but recommended) model and system_prompt chat = ChatOpenAI( model="gpt-4.1-mini", system_prompt="You are a helpful assistant.", ) # Optional tool registration def get_current_weather(lat: float, lng: float): "Get the current weather for a given location." return "sunny" chat.register_tool(get_current_weather) # Send user prompt to the model for a response. chat.chat("How's the weather in San Francisco?") ``` <img src="https://posit-dev.github.io/chatlas/images/chatlas-hello.png" alt="Model response output to the user query: 'How's the weather in San Francisco?'" width="67%" style="display: block; margin-left: auto; margin-right: auto"> Learn more at <https://posit-dev.github.io/chatlas>


نیازمندی

مقدار نام
- jinja2
- openai
- orjson
- pydantic>=2.0
- requests
- rich
xtr anthropic;
xtr anthropic[bedrock];
xtr databricks-sdk;
xtr anthropic[bedrock];
xtr databricks-sdk;
xtr google-genai>=1.14.0;
xtr htmltools;
xtr matplotlib;
xtr narwhals;
xtr numpy>1.24.4;
xtr openai;
xtr pandas;
xtr pillow;
xtr polars;
xtr python-dotenv;
xtr ruff>=0.6.5;
xtr shiny;
xtr shinychat;
xtr snowflake-ml-python>=1.8.4;
xtr tenacity;
xtr tiktoken;
ython_versio torch;
xtr griffe>=1;
xtr ipykernel;
xtr ipywidgets;
xtr nbclient;
xtr nbformat;
xtr numpy;
xtr pandas;
xtr pyyaml;
xtr quartodoc>=0.7;
xtr sentence-transformers;
ython_versio inspect-ai;
xtr google-genai>=1.14.0;
ython_versio mcp>=1.4.0;
xtr snowflake-ml-python<=1.9.0;
xtr pyright>=1.1.379;
xtr pytest-asyncio;
xtr pytest-recording>=0.13;
xtr pytest>=8.3.2;
xtr syrupy>=4;
xtr vcrpy>=6.0.0;
xtr google-genai>=1.14.0;


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl chatlas-0.9.2:

    pip install chatlas-0.9.2.whl


نصب پکیج tar.gz chatlas-0.9.2:

    pip install chatlas-0.9.2.tar.gz