Metadata-Version: 2.2
Name: langchain-deepseek-extension
Version: 0.0.8
Summary: This project supports the calculation of token counts.
Author-email: edfeff <edfeff@163.com>
Project-URL: Homepage, https://github.com/edfeff/langchain-deepseek-extension
Project-URL: Issues, https://github.com/edfeff/langchain-deepseek-extension/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langchain_deepseek

# langchain-deepseek-extension

## Introduction
    This project supports the calculation of token counts.

    ref: https://api-docs.deepseek.com/zh-cn/quick_start/token_usage

## Examples

```python
from langchain_deepseek_extension.extension import ChatDeepSeekPlus

model = ChatDeepSeekPlus(model="deepseek-chat")

messages = [
    SystemMessage(content="you're a good assistant"),
    HumanMessage(content="hi! I'm bob"),
    AIMessage(content="hi!")
]
num = model.get_num_tokens_from_messages(messages)

```
