Javelin AI Gateway 서비스는 AI 애플리케이션을 위한 고성능 엔터프라이즈급 API Gateway입니다.
이는 조직 내에서 OpenAI, Cohere, Anthropic 및 커스텀 large language model과 같은 다양한 large language model (LLM) 제공업체의 사용 및 액세스를 간소화하도록 설계되었으며,
모든 LLM 상호작용에 대한 강력한 액세스 보안을 통합합니다.Javelin은 특정 LLM 관련 요청을 처리하기 위한 통합 endpoint를 제공하여 LLM과의 상호작용을 단순화하는 high-level interface를 제공합니다.자세한 내용은 Javelin AI Gateway 문서를 참조하세요.
Javelin Python SDK는 AI 애플리케이션에 쉽게 임베드할 수 있는 사용하기 쉬운 client library입니다.
from langchain_community.chat_models import ChatJavelinAIGatewayfrom langchain.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))