Metadata-Version: 2.4
Name: langchain-bf16
Version: 0.1.0
Summary: Official LangChain integration for bf16.ai (1M-context uncensored open-weight LLMs with Zero Data Retention).
Author-email: BF16 Team <hello@bf16.ai>
License: MIT
Project-URL: Homepage, https://bf16.ai
Project-URL: Documentation, https://bf16.ai/docs
Project-URL: Repository, https://github.com/BF16-AI/langchain-bf16
Project-URL: Model Catalog, https://bf16.ai/models
Project-URL: Open-Source Grants, https://bf16.ai/open-source
Keywords: langchain,bf16,llm,uncensored,ai,deepseek,glm,kimi,zdr
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langchain-openai>=0.2.0
Provides-Extra: test
Requires-Dist: pytest>=8.0; extra == "test"
Dynamic: license-file

# langchain-bf16

Official [LangChain](https://python.langchain.com/) integration for [**bf16.ai**](https://bf16.ai) — 1M-context uncensored open-weight LLMs with strict Zero Data Retention (`ZDR`) and behavioral verification gates.

## Installation

```bash
pip install langchain-bf16
```

## Quick Start

```python
from langchain_bf16 import ChatBF16, BF16_MODELS

llm = ChatBF16(model=BF16_MODELS["deepseek_v4_1_flash"])
resp = llm.invoke("Audit this TypeScript auth middleware for race conditions.")
print(resp.content)
```

Set `BF16_API_KEY` (or pass `api_key=...`). You can also use `"bf16/auto"`, `"bf16/auto:fast"`, `"bf16/auto:coding"`, or `"moonshotai/kimi-k3.1-pro-uncensored"`.

## Links

- Website: https://bf16.ai
- Docs: https://bf16.ai/docs
- Live Models & Pricing: https://bf16.ai/models
- Open-Source `$50` API Grants: https://bf16.ai/open-source
