Module: RubyLLM::Providers::Mistral::Chat

Included in:
RubyLLM::Providers::Mistral
Defined in:
lib/ruby_llm/providers/mistral/chat.rb

Overview

Chat methods for Mistral API

Class Method Summary collapse

Class Method Details

.format_role(role) ⇒ Object



10
11
12
# File 'lib/ruby_llm/providers/mistral/chat.rb', line 10

def format_role(role)
  role.to_s
end

.render_payload(messages, tools:, temperature:, model:, stream: false, schema: nil) ⇒ Object

rubocop:disable Metrics/ParameterLists



15
16
17
18
19
# File 'lib/ruby_llm/providers/mistral/chat.rb', line 15

def render_payload(messages, tools:, temperature:, model:, stream: false, schema: nil)
  payload = super
  payload.delete(:stream_options)
  payload
end