Skip to main content

LLM connection using OpenRouter with a single library.

Project description

openrouter-selector

LLM connection using OpenRouter with a single library.

Installation

To install the openrouter-selector library, use pip:

pip install openrouter-selector

Usage

Here is a basic example of how to use the openrouter-selector library:

from openrouter_selector import Selector

llm = Selector(model_name="your_model_name", openai_api_key="your_api_key")

# If the API key is defined in the .env file, you can omit the openai_api_key parameter
llm = Selector(model_name="your_model_name")

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

openrouter_selector-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

openrouter_selector-0.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file openrouter_selector-0.0.3.tar.gz.

File metadata

  • Download URL: openrouter_selector-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.13

File hashes

Hashes for openrouter_selector-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6f8ee06b9f174ab5f4ab96a97c98b0fd159c2b33d48bc7b35a18a3880d8acde7
MD5 39bfe6a29e468ea87523a94b51423b1b
BLAKE2b-256 92c3fe955bc9152711055b891f7f9d9e3c9871aa97f861f40119b0f6bb2e7900

See more details on using hashes here.

File details

Details for the file openrouter_selector-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for openrouter_selector-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e748815ecfbb605b388cbc4724ed0a13fdd020f8afdef5f8a04393df3994f6a2
MD5 6a808f83b04c3bd5aa8db906df32034b
BLAKE2b-256 89c8a486e8d31e46094cf7440b08c9c5a53f67c5b10547adaa58aaa1e4642d77

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