mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-04 05:22:14 +00:00
Adds support for mistral models (pixtral and mistral large now have presets) Also corrects token accounting in AWS bedrock models
18 lines
325 B
Ruby
18 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
|