| 675 | model.streaming = streaming; |
| 676 | } |
| 677 | |
| 678 | ServerState::LoadedModel & ServerState::require_model(const Value & body) { |
| 679 | const std::string id = engine::io::json::require_string(body, "model"); |
| 680 | const auto it = model_index_.find(id); |
| 681 | if (it == model_index_.end()) { |
| 682 | throw std::runtime_error("unknown model id: " + id); |
| 683 | } |
| 684 | return *models_.at(it->second); |
| 685 | } |
| 686 | |
| 687 | const ServerState::LoadedModel::RuntimeVoicePreset * ServerState::select_voice_preset( |
| 688 | const LoadedModel & model, |
| 689 | const Value & body, |
nothing calls this directly
no test coverage detected