2025-03-04 15:17:10 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2025-04-14 21:01:36 +08:00
|
|
|
struct Configuration {
|
2025-03-04 15:17:10 +08:00
|
|
|
std::string api_env_key;
|
|
|
|
std::string base_url;
|
|
|
|
std::string user_name;
|
|
|
|
std::string model_name;
|
|
|
|
std::string assistant_name;
|
2025-04-14 22:49:10 +08:00
|
|
|
int32_t max_tokens{};
|
2025-03-04 15:17:10 +08:00
|
|
|
};
|
|
|
|
|
2025-04-14 21:01:36 +08:00
|
|
|
class ConfigSet
|
2025-03-04 15:17:10 +08:00
|
|
|
{
|
|
|
|
public:
|
2025-04-14 21:01:36 +08:00
|
|
|
ConfigSet() = default;
|
|
|
|
~ConfigSet() = default;
|
2025-04-14 22:49:10 +08:00
|
|
|
|
2025-03-04 15:17:10 +08:00
|
|
|
public:
|
2025-04-14 21:01:36 +08:00
|
|
|
static bool parse_config(Configuration& config, const std::string& config_path = "");
|
|
|
|
};
|