FEATURE: Claude 2 for summarization and AIHelper (#101)

This commit is contained in:
Rafael dos Santos Silva 2023-07-13 12:32:08 -03:00 committed by GitHub
parent 1c017c22b0
commit 9d10a152b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -134,7 +134,7 @@ plugins:
choices:
- gpt-3.5-turbo
- gpt-4
- claude-v1
- claude-2
ai_embeddings_enabled:
default: false

View File

@ -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|

View File

@ -8,7 +8,7 @@ module ::DiscourseAi
def self.perform!(
prompt,
model = "claude-v1",
model = "claude-2",
temperature: nil,
top_p: nil,
max_tokens: nil,