24#include "AstUtil/JsonValue.hpp"
45 void setModel(
const std::string& model) { model_ = model; }
47 const std::string&
model()
const {
return model_; }
60 std::string model_ =
"deepseek-v4-flash";
61 float temperature_ = 0.2f;
JSON 值类
定义 JsonValue.hpp:47
LLM请求配置
定义 LLMConfig.hpp:39
const std::string & model() const
获取模型名称
定义 LLMConfig.hpp:47
void setModel(const std::string &model)
设置模型名称
定义 LLMConfig.hpp:45
void setTemperature(float temperature)
设置温度参数
定义 LLMConfig.hpp:50
void setExtraBody(const JsonValue &extra)
设置提供者特有的额外请求体字段(如DeepSeek的thinking)
定义 LLMConfig.hpp:55
float temperature() const
获取温度参数
定义 LLMConfig.hpp:52
const JsonValue & extraBody() const
获取提供者特有的额外请求体字段
定义 LLMConfig.hpp:57