FEATURE: Claude 2 for summarization and AIHelper (#101)
This commit is contained in:
parent
1c017c22b0
commit
9d10a152b9
|
@ -134,7 +134,7 @@ plugins:
|
|||
choices:
|
||||
- gpt-3.5-turbo
|
||||
- gpt-4
|
||||
- claude-v1
|
||||
- claude-2
|
||||
|
||||
ai_embeddings_enabled:
|
||||
default: false
|
||||
|
|
|
@ -22,6 +22,7 @@ module DiscourseAi
|
|||
Models::Discourse.new("long-t5-tglobal-base-16384-book-summary", max_tokens: 16_384),
|
||||
Models::Anthropic.new("claude-v1", max_tokens: 9000),
|
||||
Models::Anthropic.new("claude-v1-100k", max_tokens: 100_000),
|
||||
Models::Anthropic.new("claude-2", max_tokens: 100_000),
|
||||
]
|
||||
|
||||
foldable_models.each do |model|
|
||||
|
|
|
@ -8,7 +8,7 @@ module ::DiscourseAi
|
|||
|
||||
def self.perform!(
|
||||
prompt,
|
||||
model = "claude-v1",
|
||||
model = "claude-2",
|
||||
temperature: nil,
|
||||
top_p: nil,
|
||||
max_tokens: nil,
|
||||
|
|
Loading…
Reference in New Issue