mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
Adds support for mistral models (pixtral and mistral large now have presets) Also corrects token accounting in AWS bedrock models
17 lines
325 B
Ruby
17 lines
325 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module Completions
|
|
module Endpoints
|
|
class Mistral < OpenAi
|
|
def self.can_contact?(model_provider)
|
|
model_provider == "mistral"
|
|
end
|
|
|
|
def provider_id
|
|
AiApiAuditLog::Provider::Mistral
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|