#pragma once #include #include #include namespace svapi { /// Global service settings — no api_key field (keys live in KeyStore). struct Settings { std::string openaiApiBase = "https://api.openai.com"; std::string openaiApiKey; std::string defaultEmbeddingModel = "text-embedding-3-small"; std::vector corsOrigins = {"*"}; uint32_t sessionTtlMinutes = 720; bool webuiEnabled = true; std::string defaultProject = "default"; static Settings fromJson(const nlohmann::json& j); nlohmann::json toJson() const; }; } // namespace svapi