Class: LlmGateway::Adapters::OpenAi::ChatCompletions::InputMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_gateway/adapters/open_ai/chat_completions/input_mapper.rb

Direct Known Subclasses

Groq::InputMapper, Responses::InputMapper

Class Method Summary collapse

Class Method Details

.map(data) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/llm_gateway/adapters/open_ai/chat_completions/input_mapper.rb', line 11

def self.map(data)
  {
    messages: map_messages(data[:messages]),
    response_format: map_response_format(data[:response_format]),
    tools: map_tools(data[:tools]),
    system: map_system(data[:system])
  }
end