File tree 1 file changed +4
-3
lines changed
haystack/nodes/prompt/invocation_layer
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
22
# Taken from:
23
23
# https://github.com/anthropics/anthropic-sdk-python/blob/main/anthropic/tokenizer.py#L7
24
24
# This is a JSON config to load the tokenizer used for Anthropic Claude.
25
- CLAUDE_TOKENIZER_REMOTE_FILE = (
26
- "https://raw.githubusercontent.com/anthropics/anthropic-sdk-python/main/src/anthropic/tokenizer.json"
27
- )
25
+ # Anthropic removed tokenizer.json from their repo (https://github.com/anthropics/anthropic-sdk-python/pull/726),
26
+ # we need to use the commit from the latest version of the SDK that still
27
+ # has it, i.e. 0.38.0 and commit hash 14afc93ffd809e60666a267763a57a328184c5e4.
28
+ CLAUDE_TOKENIZER_REMOTE_FILE = "https://raw.githubusercontent.com/anthropics/anthropic-sdk-python/14afc93ffd809e60666a267763a57a328184c5e4/src/anthropic/tokenizer.json"
28
29
29
30
30
31
class AnthropicClaudeInvocationLayer (PromptModelInvocationLayer ):
You can’t perform that action at this time.
0 commit comments