The Javelin AI Gateway service is a high-performance, enterprise grade API Gateway for AI applications.
It is designed to streamline the usage and access of various large language model (LLM) providers,
such as OpenAI, Cohere, Anthropic and custom large language models within an organization by incorporating
robust access security for all interactions with LLMs.Javelin offers a high-level interface that simplifies the interaction with LLMs by providing a unified endpoint
to handle specific LLM related requests.See the Javelin AI Gateway documentation for more details.
Javelin Python SDK is an easy to use client library meant to be embedded into AI Applications
from langchain_community.chat_models import ChatJavelinAIGatewayfrom langchain_core.messages import HumanMessage, SystemMessagemessages = [ SystemMessage( content="You are a helpful assistant that translates English to French." ), HumanMessage( content="Artificial Intelligence has the power to transform humanity and make the world a better place" ),]chat = ChatJavelinAIGateway( gateway_uri="http://localhost:8000", route="mychatbot_route", model_name="gpt-3.5-turbo" params={ "temperature": 0.1 })print(chat(messages))
Assistant
Responses are generated using AI and may contain mistakes.