Metadata-Version: 2.4
Name: lmitf
Version: 0.1.1
Summary: Large Model Interface - A flexible interface for interacting with large language models and vision models.
Keywords: ai,llm,lvm,api,interface,openai,large-model
Author-email: Guohao Zhang <guohao2045@gmail.com>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
License-File: LICENSE
Requires-Dist: openai>=1.0
Requires-Dist: pandas>=2.3
Requires-Dist: python-dotenv>=1.0
Requires-Dist: wasabi>=1.1
Requires-Dist: pillow>=9.0
Project-URL: Homepage, https://github.com/colehank/AI-interface
Project-URL: Issues, https://github.com/colehank/AI-interface/issues
Project-URL: Repository, https://github.com/colehank/AI-interface

# 中文说明

## 项目简介

LMITF (Large Model Interface) 为与聚合API平台交互提供了一个灵活的接口，支持直接消息调用和基于模板的提示调用。

## 安装方法

```bash
pip install lmitf
```

或者从源码安装：

```bash
git clone https://github.com/colehank/AI-interface.git
cd AI-interface
pip install -r requirements.txt
```

## 环境变量

在项目根目录下创建`.env`文件（参考`.env_example`）：

```
OPENAI_API_KEY=你的API密钥
OPENAI_BASE_URL=API地址
```

## 使用示例
LLM见[example_llm.ipynb](https://github.com/colehank/AI-interface/blob/main/example_llm.ipynb),
LVM见[example_lvm.ipynb](https://github.com/colehank/AI-interface/blob/main/example_lvm.ipynb),
模型问价及api key余额查询见[example_price.ipynb](https://github.com/colehank/AI-interface/blob/main/example_price.ipynb)
