Skip to main content

Just a simple mediator for different LLM models.

Project description

LLM Picker

Just a simple mediator for different LLM models

Features

  • Cache
  • GPT-3.5
  • GPT-4
  • GPT-4-32k
  • LLaMA
  • Falcon

Quick Usage

Install:

# Install llm_mediator from github
pip install git+https://github.com/zeuscsc/llm_mediator.git

Usage:

model_name="GPT-4-32k"
model=LLM(GPT)
model.model_class.set_model_name(model_name)
response=model.get_response(system,assistant,user)

Where system, assistant, user are the input text, and response is the output text.

Set Environment Variables

Unix:

export OPENAI_API_KEY=your openai key (Nessary for GPT)
export TECKY_API_KEY=your tecky key (Nessary for GPT)

Windows:

$ENV:OPENAI_API_KEY="your openai key" (Nessary for GPT)
$ENV:TECKY_API_KEY="your tecky key" (Nessary for GPT)

Python: Create a

from llm_mediator import gpt
gpt.OPENAI_API_KEY="your openai key" (Nessary for GPT)
gpt.TECKY_API_KEY = "your tecky key" (Nessary for GPT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

LLM_Mediator-0.8.11-py2.py3-none-any.whl (11.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file LLM_Mediator-0.8.11-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for LLM_Mediator-0.8.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3b630cd4769be23dd986ebc0c4de65fc6c48402924b1f5794969314a10a3a6a6
MD5 c290b0e0dae54786794da83f9fdfa9cc
BLAKE2b-256 757ed1b526f45adc3f67e50d8c9d00176ec59c4b129651091ef8d31685167192

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