20 lines
371 B
C
20 lines
371 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
struct ConfigInfo {
|
||
|
std::string api_env_key;
|
||
|
std::string base_url;
|
||
|
std::string user_name;
|
||
|
std::string model_name;
|
||
|
std::string assistant_name;
|
||
|
};
|
||
|
|
||
|
class CConfig
|
||
|
{
|
||
|
public:
|
||
|
CConfig() = default;
|
||
|
~CConfig() = default;
|
||
|
public:
|
||
|
static bool parse_config(ConfigInfo& config, const std::string& config_path = "");
|
||
|
};
|