| 45 | throw std::runtime_error("server max_request_body_bytes must be <= 2^53 - 1"); |
| 46 | } |
| 47 | return static_cast<uint64_t>(parsed); |
| 48 | } |
| 49 | |
| 50 | ServerModelConfig::VoicePreset parse_voice_preset( |
| 51 | const std::filesystem::path & base, |
| 52 | const engine::io::json::Value & value, |
| 53 | const std::string & context) { |
| 54 | if (!value.is_object()) { |
| 55 | throw std::runtime_error(context + " must be an object"); |
| 56 | } |
no test coverage detected