class RubyLLM::Providers::Mistral
Mistral API integration.
Public Class Methods
Source
# File lib/ruby_llm/providers/mistral.rb, line 22 def capabilities Mistral::Capabilities end
Source
# File lib/ruby_llm/providers/mistral.rb, line 26 def configuration_options %i[mistral_api_key mistral_api_base] end
# File lib/ruby_llm/providers/mistral.rb, line 30 def configuration_requirements %i[mistral_api_key] end
Public Instance Methods
Source
# File lib/ruby_llm/providers/mistral.rb, line 11 def api_base @config.mistral_api_base || 'https://api.mistral.ai/v1' end
Source
# File lib/ruby_llm/providers/mistral.rb, line 15 def headers { 'Authorization' => "Bearer #{@config.mistral_api_key}" } end