Class: LlmGateway::Adapters::OpenAi::ChatCompletions::InputMapper
- Inherits:
-
Object
- Object
- LlmGateway::Adapters::OpenAi::ChatCompletions::InputMapper
show all
- Defined in:
- lib/llm_gateway/adapters/open_ai/chat_completions/input_mapper.rb
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
|