mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 05:59:26 +08:00
17 lines
324 B
Ruby
Vendored
17 lines
324 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module Completions
|
|
module Endpoints
|
|
class Mistral < OpenAi
|
|
def self.can_contact?(llm_model)
|
|
llm_model.provider == "mistral"
|
|
end
|
|
|
|
def provider_id
|
|
AiApiAuditLog::Provider::Mistral
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|