Skip to main content

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.ipynb, LVM见example_lvm.ipynb, 模型问价及api key余额查询见example_price.ipynb

Project details


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.1.tar.gz (493.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lmitf-0.1.1-py3-none-any.whl (499.3 kB view details)

Uploaded Python 3

File details

Details for the file lmitf-0.1.1.tar.gz.

File metadata

  • Download URL: lmitf-0.1.1.tar.gz
  • Upload date:
  • Size: 493.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for lmitf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2bc46fc6af7bb0f620ba348b75bd7cc3bff7c8958240d0ea26ae90e04bb1997
MD5 9c71b44200ea408a526c94ba81789f19
BLAKE2b-256 8c06ba3904376aa9e9395daf9bf55b1add34221af9d39b7417ee2686ebe28cfb

See more details on using hashes here.

File details

Details for the file lmitf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lmitf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 499.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for lmitf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 accaa0eef1414e3f09c5a68a38af35ac80dd87eda094e476fa4985debd38d04e
MD5 aed65bab1ff34f6c0b64094aff228712
BLAKE2b-256 365db51dc871dd10953ab91f766f7027226db6e2e1a7e593feef06bfd5e70e2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page