Class: LlmGateway::Adapters::Groq::InputMapper

Inherits:
OpenAI::ChatCompletions::InputMapper show all
Defined in:
lib/llm_gateway/adapters/groq/input_mapper.rb

Class Method Summary collapse

Methods inherited from OpenAI::ChatCompletions::InputMapper

map_content

Class Method Details

.map(data) ⇒ Object



9
10
11
12
# File 'lib/llm_gateway/adapters/groq/input_mapper.rb', line 9

def self.map(data)
  mapped = super
  mapped.merge(messages: map_groq_messages(mapped[:messages]))
end