pub fn normalize_chat_url(base_url: Option<&str>, default_url: &str) -> String
Normalize a chat completions URL. Ensures the URL ends with the correct path for chat completions.