langchain.chat_models.javelin_ai_gateway.ChatJavelinAIGateway¶
class langchain.chat_models.javelin_ai_gateway.ChatJavelinAIGateway[source]¶
Bases: BaseChatModel
Javelin AI Gateway chat models API.
To use, you should have the javelin_sdk python package installed.
For more information, see https://docs.getjavelin.io
Example
from langchain.chat_models import ChatJavelinAIGateway
chat = ChatJavelinAIGateway(
    gateway_uri="<javelin-ai-gateway-uri>",
    route="<javelin-ai-gateway-chat-route>",
    params={
        "temperature": 0.1
    }
)
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param cache: Optional[bool] = None¶
Whether to cache the response.
param callback_manager: Optional[BaseCallbackManager] = None¶
Callback manager to add to the run trace.
param callbacks: Callbacks = None¶
Callbacks to add to the run trace.
param client: Any = None¶
javelin client.
param gateway_uri: Optional[str] = None¶
The URI for the Javelin AI Gateway API.
param javelin_api_key: Optional[str] = None¶
The API key for the Javelin AI Gateway.
param metadata: Optional[Dict[str, Any]] = None¶
Metadata to add to the run trace.
param params: Optional[langchain.chat_models.javelin_ai_gateway.ChatParams] = None¶
Parameters for the Javelin AI Gateway LLM.
param route: str [Required]¶
The route to use for the Javelin AI Gateway API.
param tags: Optional[List[str]] = None¶