Metadata-Version: 2.1
Name: lmclient-core
Version: 0.1.0
Summary: LM Async Client, openai client, azure openai client ...
Author: wangyuxin
Author-email: wangyuxin@mokahr.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: asyncer (==0.0.2)
Requires-Dist: openai (>=0.27.7,<0.28.0)
Requires-Dist: typing-extensions (>=4.6.2,<5.0.0)
Description-Content-Type: text/markdown

# lmclient

LM Async Client, OpenAI, Azure ...


## Install

```shell
pip install lmclient-core
```

## Usage

```python
from lmclient import LMClient, AzureCompletion, OpenAICompletion

openai_completion = OpenAICompletion(model='gpt-3.5-turbo')
# azure_completion = AzureCompletion()
client = LMClient(openai_completion, async_capacity=5, max_requests_per_minute=20)
prompts = [
    'Hello, my name is',
    'can you please tell me your name?',
    'i want to know your name',
    'what is your name?',
]
values = client.async_run(prompts=prompts)
print(values)
```

