79338170

Date: 2025-01-08 06:52:31
Score: 0.5
Natty:
Report link

A simpler solution to this is to use the below approach. Since the Anthropic Models are hosted behind OpenAI's API this would be the appropriate approach without adding any unnecessary complexities,

OpenAiChatModel model = OpenAiChatModel.builder()
                .baseUrl("https://mycustombaseurl")
                .apiKey(authenticator.getValidToken())
                .modelName("claude-3-5-sonnet") 
                .build();

The Github issue link to the solution

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sabari