Skip to content

Commit

Permalink
(feat) added support for claude-3-5-haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
futurisold committed Nov 5, 2024
1 parent 6bcf985 commit e1b473c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions symai/backend/mixin/anthropic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SUPPORTED_MODELS = [
# https://docs.anthropic.com/en/docs/about-claude/models
'claude-3-5-sonnet-latest',
'claude-3-5-haiku-latest',
'claude-3-5-sonnet-20241022',
'claude-3-5-sonnet-20240620',
'claude-3-opus-latest',
Expand All @@ -22,10 +23,12 @@ def api_max_context_tokens(self):

def api_max_response_tokens(self):
if self.model == 'claude-3-5-sonnet-latest' or \
self.model == 'claude-3-5-sonnet-20240620' or \
self.model == 'claude-3-5-sonnet-20241022' or \
self.model == 'claude-3-5-haiku-latest':
return 8_192
if self.model == 'claude-3-5-sonnet-20240620' or \
self.model == 'claude-3-opus-latest' or \
self.model == 'claude-3-opus-20240229' or \
self.model == 'clade-3-opus-20240229' or \
self.model == 'claude-3-sonnet-20240229' or \
self.model == 'claude-3-haiku-20240307':
return 4_096
Expand Down

0 comments on commit e1b473c

Please sign in to comment.