Class WatsonxGatewayStreamingChatModel

java.lang.Object
dev.langchain4j.model.watsonx.WatsonxGatewayStreamingChatModel
All Implemented Interfaces:
StreamingChatModel

public class WatsonxGatewayStreamingChatModel extends Object implements StreamingChatModel
A StreamingChatModel implementation that integrates the IBM watsonx.ai Model Gateway with LangChain4j.

Example usage:


StreamingChatModel chatModel = WatsonxGatewayStreamingChatModel.builder()
    .baseUrl("https://...") // or use CloudRegion
    .apiKey("...")
    .modelName("gpt-4o")
    .maxOutputTokens(0)
    .temperature(0.7)
    .build();