A configurable forwarder for OpenAI-compatible LLM requests
Project description
LLMForwarder
LLMForwarder is a Python package for forwarding chat requests to a locally hosted model API (such as OpenAI-compatible models). It allows users to configure the server address, port, and OpenAI API details, as well as customize request handling through an external function. This package is ideal for injecting custom context or pre-processing user messages before forwarding to the model API.
Features
- Configurable server address and port
- Flexible OpenAI API integration
- Customizable prompt-handling function, allowing easy injection of context or prompt modifications
- Easy setup and usage for OpenAI-compatible models
Installation
To install LLMForwarder, use pip:
pip install llm-forwarder
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 llm_forwarder-0.1.0.tar.gz.
File metadata
- Download URL: llm_forwarder-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e1c1dd1dd27c395b9108d67537d43a91ee9511c1edcd514bffc55d62aa35036
|
|
| MD5 |
a3c465c29ce5cbe618273ab7593e33bb
|
|
| BLAKE2b-256 |
1fb2b2de6196130878bc6cbbf1d79ae3b6d79f8e12fc69374dedace315dd7150
|
File details
Details for the file llm_forwarder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_forwarder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7505f5ee3979a3140a0bffcd3f8b7d9d1991b91ab565374315fae73e6bbc5177
|
|
| MD5 |
67da585b8fcce997db8f809a9ca4e7d5
|
|
| BLAKE2b-256 |
4e282598568d0243e90ceb4dd7a80b9ce8613dcce6af7dfaae2ff43a64b78b4d
|