You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
12
12
## [Unreleased]
13
13
-[FEATURE][https://github.com/patterns-ai-core/langchainrb/pull/858] Assistant, when using Anthropic, now also accepts image_url in the message.
14
+
-[FEATURE][https://github.com/patterns-ai-core/langchainrb/pull/859] Clean up passing `max_tokens` to Anthropic constructor and chat method
14
15
15
16
## [0.19.0] - 2024-10-23
16
17
-[BREAKING][https://github.com/patterns-ai-core/langchainrb/pull/840] Rename `chat_completion_model_name` parameter to `chat_model` in Langchain::LLM parameters.
Copy file name to clipboardExpand all lines: lib/langchain/llm/anthropic.rb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,14 @@ class Anthropic < Base
15
15
temperature: 0.0,
16
16
completion_model: "claude-2.1",
17
17
chat_model: "claude-3-5-sonnet-20240620",
18
-
max_tokens_to_sample: 256
18
+
max_tokens: 256
19
19
}.freeze
20
20
21
21
# Initialize an Anthropic LLM instance
22
22
#
23
23
# @param api_key [String] The API key to use
24
24
# @param llm_options [Hash] Options to pass to the Anthropic client
25
-
# @param default_options [Hash] Default options to use on every call to LLM, e.g.: { temperature:, completion_model:, chat_model:, max_tokens_to_sample: }
25
+
# @param default_options [Hash] Default options to use on every call to LLM, e.g.: { temperature:, completion_model:, chat_model:, max_tokens: }
0 commit comments