FEATURE: Support for Claude 3.5 Sonnet via AWS Bedrock (#680)

This commit is contained in:
Rafael dos Santos Silva 2024-06-20 17:51:46 -03:00 committed by GitHub
parent b23a3a86a6
commit 714caf34fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -6,9 +6,7 @@ module DiscourseAi
class Claude < Dialect
class << self
def can_translate?(model_name)
%w[claude-instant-1 claude-2 claude-3-haiku claude-3-sonnet claude-3-opus].include?(
model_name,
)
model_name.start_with?("claude") || model_name.start_with?("anthropic")
end
end

View File

@ -78,6 +78,8 @@ module DiscourseAi
"anthropic.claude-instant-v1"
when "claude-3-opus"
"anthropic.claude-3-opus-20240229-v1:0"
else
model
end
api_url =