module RubyLLM::Providers::Azure::Chat
Public Instance Methods
Source
# File lib/ruby_llm/providers/azure/chat.rb, line 8 def completion_url azure_endpoint(:chat) end
Source
# File lib/ruby_llm/providers/azure/chat.rb, line 12 def format_messages(messages) messages.map do |msg| { role: format_role(msg.role), content: Media.format_content(msg.content), tool_calls: format_tool_calls(msg.tool_calls), tool_call_id: msg.tool_call_id }.compact.merge(format_thinking(msg)) end end
Source
# File lib/ruby_llm/providers/azure/chat.rb, line 23 def format_role(role) role.to_s end