FEATURE: Support for Claude 3.5 Sonnet via AWS Bedrock (#680)
This commit is contained in:
parent
b23a3a86a6
commit
714caf34fe
|
@ -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
|
||||
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue