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
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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8ee06b9f174ab5f4ab96a97c98b0fd159c2b33d48bc7b35a18a3880d8acde7
|
|
| MD5 |
39bfe6a29e468ea87523a94b51423b1b
|
|
| BLAKE2b-256 |
92c3fe955bc9152711055b891f7f9d9e3c9871aa97f861f40119b0f6bb2e7900
|
File details
Details for the file openrouter_selector-0.0.3-py3-none-any.whl.
File metadata
- Download URL: openrouter_selector-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e748815ecfbb605b388cbc4724ed0a13fdd020f8afdef5f8a04393df3994f6a2
|
|
| MD5 |
6a808f83b04c3bd5aa8db906df32034b
|
|
| BLAKE2b-256 |
89c8a486e8d31e46094cf7440b08c9c5a53f67c5b10547adaa58aaa1e4642d77
|