From 9c8a4d3f5a0a55f5c6456b389a9e4e730667fd8f Mon Sep 17 00:00:00 2001 From: Andrei Bondarev Date: Wed, 9 Oct 2024 12:54:24 -0600 Subject: [PATCH 1/2] Bump anthropic gem --- Gemfile.lock | 2 +- lib/langchain/llm/anthropic.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5f9008808..67336ee80 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -42,7 +42,7 @@ GEM public_suffix (>= 2.0.2, < 6.0) afm (0.2.2) ai21 (0.2.1) - anthropic (0.3.0) + anthropic (0.3.2) event_stream_parser (>= 0.3.0, < 2.0.0) faraday (>= 1) faraday-multipart (>= 1) diff --git a/lib/langchain/llm/anthropic.rb b/lib/langchain/llm/anthropic.rb index 7e939306f..bd7a7cc2d 100644 --- a/lib/langchain/llm/anthropic.rb +++ b/lib/langchain/llm/anthropic.rb @@ -5,7 +5,7 @@ module Langchain::LLM # Wrapper around Anthropic APIs. # # Gem requirements: - # gem "anthropic", "~> 0.3.0" + # gem "anthropic", "~> 0.3.2" # # Usage: # anthropic = Langchain::LLM::Anthropic.new(api_key: ENV["ANTHROPIC_API_KEY"]) @@ -14,7 +14,7 @@ class Anthropic < Base DEFAULTS = { temperature: 0.0, completion_model_name: "claude-2.1", - chat_completion_model_name: "claude-3-sonnet-20240229", + chat_completion_model_name: "claude-3-5-sonnet-20240620", max_tokens_to_sample: 256 }.freeze From cacab010d1264dbbb9e90c9b818ef19bb9fb7f59 Mon Sep 17 00:00:00 2001 From: Andrei Bondarev Date: Wed, 9 Oct 2024 13:02:58 -0600 Subject: [PATCH 2/2] changelog entry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bbcea0ce..b15c015c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## [Unreleased] +- Bump anthropic gem +- Default Langchain::LLM::Anthropic chat model is "claude-3-5-sonnet-20240620" now ## [0.17.1] - 2024-10-07 - Move Langchain::Assistant::LLM::Adapter-related classes to separate files