Module: RubyLLM::Providers::Azure::Chat

Included in:
ChatCompletions
Defined in:
lib/ruby_llm/providers/azure/chat.rb

Overview

Chat methods of the Azure AI Foundry API integration

Instance Method Summary collapse

Instance Method Details

#completion_urlObject



8
9
10
# File 'lib/ruby_llm/providers/azure/chat.rb', line 8

def completion_url
  azure_endpoint(:chat)
end

#format_content(content, attachments = []) ⇒ Object



12
13
14
# File 'lib/ruby_llm/providers/azure/chat.rb', line 12

def format_content(content, attachments = [])
  Media.format_content(content, attachments)
end

#format_role(role) ⇒ Object



16
17
18
# File 'lib/ruby_llm/providers/azure/chat.rb', line 16

def format_role(role)
  role.to_s
end