Skip to content

Commit 6364089

Browse files
Bump anthropic gem (#819)
* Bump anthropic gem * changelog entry
1 parent f5af318 commit 6364089

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## [Unreleased]
2+
- Bump anthropic gem
3+
- Default Langchain::LLM::Anthropic chat model is "claude-3-5-sonnet-20240620" now
24

35
## [0.17.1] - 2024-10-07
46
- Move Langchain::Assistant::LLM::Adapter-related classes to separate files

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ GEM
4242
public_suffix (>= 2.0.2, < 6.0)
4343
afm (0.2.2)
4444
ai21 (0.2.1)
45-
anthropic (0.3.0)
45+
anthropic (0.3.2)
4646
event_stream_parser (>= 0.3.0, < 2.0.0)
4747
faraday (>= 1)
4848
faraday-multipart (>= 1)

lib/langchain/llm/anthropic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Langchain::LLM
55
# Wrapper around Anthropic APIs.
66
#
77
# Gem requirements:
8-
# gem "anthropic", "~> 0.3.0"
8+
# gem "anthropic", "~> 0.3.2"
99
#
1010
# Usage:
1111
# anthropic = Langchain::LLM::Anthropic.new(api_key: ENV["ANTHROPIC_API_KEY"])
@@ -14,7 +14,7 @@ class Anthropic < Base
1414
DEFAULTS = {
1515
temperature: 0.0,
1616
completion_model_name: "claude-2.1",
17-
chat_completion_model_name: "claude-3-sonnet-20240229",
17+
chat_completion_model_name: "claude-3-5-sonnet-20240620",
1818
max_tokens_to_sample: 256
1919
}.freeze
2020

0 commit comments

Comments
 (0)