Class AnthropicChatModel

java.lang.Object
org.springframework.ai.anthropic.AnthropicChatModel
All Implemented Interfaces:
ChatModel, StreamingChatModel, Model<Prompt,ChatResponse>, StreamingModel<Prompt,ChatResponse>

public class AnthropicChatModel extends Object implements ChatModel
The ChatModel implementation for the Anthropic service.
Since:
1.0.0
Author:
Christian Tzolov, luocongqiu, Mariusz Bernacki, Thomas Vitale, Claudio Silva Junior, Alexandros Pappas, Jonghoon Park, Soby Chacko
  • Field Details

    • DEFAULT_MODEL_NAME

      public static final String DEFAULT_MODEL_NAME
    • DEFAULT_MAX_TOKENS

      public static final Integer DEFAULT_MAX_TOKENS
    • DEFAULT_TEMPERATURE

      public static final Double DEFAULT_TEMPERATURE
    • retryTemplate

      public final org.springframework.retry.support.RetryTemplate retryTemplate
      The retry template used to retry the OpenAI API calls.
  • Constructor Details

  • Method Details