Skip to main content

axemere-gateway-langchain

License: MIT

LangChain BaseChatModel integration for the Axemere AI Gateway. Drop ChatAiGateway into any LangChain chain or agent — the gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.

Install

pip install axemere-gateway-langchain

Usage

from axemere.gateway.langchain import ChatAiGateway

llm = ChatAiGateway(provider="openai", model="gpt-4o-mini")
# reads AXEMERE_GATEWAY_URL + AXEMERE_GATEWAY_TOKEN from env

response = llm.invoke("Hello")
print(response.content)

Works anywhere a LangChain BaseChatModel is accepted — chains, agents, LCEL pipelines.

Configuration

Env var Description
AXEMERE_GATEWAY_URL Gateway base URL, e.g. http://localhost:7080
AXEMERE_GATEWAY_TOKEN Bearer token issued by the gateway

Links

License

MIT

Download files

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

Source Distribution

axemere_gateway_langchain-0.2.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

axemere_gateway_langchain-0.2.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file axemere_gateway_langchain-0.2.1.tar.gz.

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.2.1.tar.gz
Algorithm Hash digest
SHA256 659b0c49f71f335255012221a0c110b50c8253c9f3c709016bf9b4e2f5bbd39d
MD5 e0a568c4b0622847580c224c409b69cd
BLAKE2b-256 57e40c3e6dde7500c07158c4dca07219dacb2d796272dbf91d7c3965c101c70d

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.2.1.tar.gz:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axemere_gateway_langchain-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a30a33641ed764f5544f13e940ff748c6631d7d8bdcafac9369ba1c805addb
MD5 3cae47c332afefad4e159ec0ba3c4cd5
BLAKE2b-256 24dd4d30016274e447b27df72f57968eb05a087232588802d14da3650310889e

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page