Sam 755b63f31f
FEATURE: Add support for Mistral models (#919)
Adds support for mistral models (pixtral and mistral large now have presets)

Also corrects token accounting in AWS bedrock models
2024-11-19 17:28:09 +11:00

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