module RubyLLM::Providers::Anthropic::Chat

def build_base_payload(chat_messages, temperature, model, stream)

def build_base_payload(chat_messages, temperature, model, stream)
  {
    model: model,
    messages: chat_messages.map { |msg| format_message(msg) },
    temperature: temperature,
    stream: stream,
    max_tokens: RubyLLM.models.find(model).max_tokens
  }
end