| 12345678910111213141516171819202122 |
- #pragma once
- #include <nlohmann/json.hpp>
- #include <string>
- #include <vector>
- 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<std::string> 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
|