module RubyLLM::Providers::XAI::Chat
Chat implementation for xAI docs.x.ai/docs/api-reference#chat-completions
Public Instance Methods
Source
# File lib/ruby_llm/providers/xai/chat.rb, line 13 def format_content(content) OpenAI::Media.format_content( content, document_attachments: :none, image_attachments: true, audio_attachments: false ) end
Source
# File lib/ruby_llm/providers/xai/chat.rb, line 9 def format_role(role) role.to_s end