Skip to main content

Axemere AI Gateway LangChain integration — ChatAiGateway BaseChatModel

Project description

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

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

axemere_gateway_langchain-0.1.7.tar.gz (9.4 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.1.7-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e861d2011321e1064fac9eb7efcda6127323c78aaa697d292436c518dbee42fa
MD5 58f9286636a1a1fa90cd4591ceef2b85
BLAKE2b-256 1847e3bf287789b195f49ed774cbb2daa60db76f460d6c85c103f4da9e2205e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.1.7.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.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2f40dd6e2596dc1c6f229120ac663e68804b2a08a9f6788c4f3c1595158afd
MD5 84233fd341d726e0dc126246c1196700
BLAKE2b-256 0740404c2047e0ee0d263e8cc8c652b66a7dce7d610601a0741b8895360a9654

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.1.7-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 Pingdom Monitoring Sentry Error logging StatusPage Status page