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
- #completion_url ⇒ Object
- #format_content(content, attachments = []) ⇒ Object
- #format_role(role) ⇒ Object
Instance Method Details
#completion_url ⇒ Object
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, = []) Media.format_content(content, ) 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 |