pub fn validate_api_key(api_key: &str) -> Result<(), String>
Try to validate an OpenCode Go API key with a lightweight model-list request.