Large Model Interface - A flexible interface for interacting with large language models and vision models.
Project description
中文说明
项目简介
LMITF (Large Model Interface) 为与聚合API平台交互提供了一个灵活的接口,支持直接消息调用和基于模板的提示调用。
安装方法
pip install lmitf
或者从源码安装:
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.py, LVM见example_lvm.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lmitf-0.1.0.tar.gz
(473.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lmitf-0.1.0-py3-none-any.whl
(474.3 kB
view details)
File details
Details for the file lmitf-0.1.0.tar.gz.
File metadata
- Download URL: lmitf-0.1.0.tar.gz
- Upload date:
- Size: 473.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b16bf310542ecaa5374f326433c1d09511570e87e0a44bde37a8f906c46a2b
|
|
| MD5 |
ad8671635a77e7c54aea7377a55668bc
|
|
| BLAKE2b-256 |
cac26c99ef7b0b18183a3c542e601c61e505d8b90b5f30ab6eaf5a11d77e39ef
|
File details
Details for the file lmitf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lmitf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 474.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8800841bb7a943c9b59f0cd437094679c184d74dc60276140b54380d9cb3f2d5
|
|
| MD5 |
4d7563dbd154bc551e0d9d7acc2b0598
|
|
| BLAKE2b-256 |
cf7bbbb8fa9699486fa0b6faa5f33891bee8281077bf1b6396c2ad4fe0671d71
|