Parameter transformation utilities for LangGate
Project description
LangGate Transform
Parameter transformation utilities for LangGate AI Gateway.
This package provides the core parameter transformation logic used by both:
- Local registry clients to transform parameters for direct model calls
- The Envoy external processor to transform parameters in the proxy
It implements a declarative approach to parameter transformation that can be:
- Used directly in Python applications
- Potentially reimplemented in other languages (like Go) for external processors
- Extended with custom transformation rules
Parameter Transformation Precedence
The transformation module follows a specific precedence order when applying parameter transformations:
Defaults (applied only if key doesn't exist yet):
- Model-specific defaults (highest precedence for defaults)
- Pattern defaults (matching patterns applied in config order)
- Service provider defaults
- Global defaults (lowest precedence for defaults)
Overrides/Removals/Renames (applied in order, later steps overwrite/modify earlier ones):
- Input parameters (initial state)
- Service-level API keys and base URLs
- Service-level overrides, removals, renames
- Pattern-level overrides, removals, renames (matching patterns applied in config order)
- Model-specific overrides, removals, renames (highest precedence)
- Model ID (always overwritten with service_model_id)
- Environment variable substitution (applied last to all string values)
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 langgate_transform-0.2.0.tar.gz.
File metadata
- Download URL: langgate_transform-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37e1f8cd53858d540b2d68d4baf85ee6761a9729e40d0312e5a171bde8f99fa5
|
|
| MD5 |
11363dc5fb4506e6c7c79e35d0c3f11d
|
|
| BLAKE2b-256 |
9d6e38002fa5527c688795a55755a5a926f6785427280adc8c73ebc1b58b650b
|
File details
Details for the file langgate_transform-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langgate_transform-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cef9ae2390207c7c2739484d166f582fbb26be904762a327b97971b6c5ecac3
|
|
| MD5 |
fda3492730ebabb651f13260b6cd9977
|
|
| BLAKE2b-256 |
3f320d269aaa08728639486984530269606317bfcd08f5d12fb6240f408d09a0
|