48 virtual std::string
complete(
const std::vector<message_t> &messages) = 0;
virtual ~clientt()=default
configt cfg
Definition llm_client.h:60
clientt(configt config)
Definition llm_client.h:56
virtual std::string complete(const std::vector< message_t > &messages)=0
const configt & config() const noexcept
Definition llm_client.h:50
configt config
Definition config.cpp:8
Definition cli_llm_client.cpp:25
std::unique_ptr< clientt > make_client(configt config)
Definition llm_client.cpp:26
backendt
Definition llm_client.h:16
@ cli
Definition llm_client.h:18
@ stub
Definition llm_client.h:17
Definition exception.cpp:51
Definition llm_client.h:22
std::string executable
Definition llm_client.h:32
unsigned timeout_ms
Definition llm_client.h:29
std::string endpoint
Definition llm_client.h:25
double temperature
Definition llm_client.h:27
std::string api_key
Definition llm_client.h:26
std::string model
Definition llm_client.h:24
unsigned max_tokens
Definition llm_client.h:28
std::vector< std::string > extra_args
Definition llm_client.h:33
backendt backend
Definition llm_client.h:23
Definition llm_client.h:10
std::string role
Definition llm_client.h:11
std::string content
Definition llm_client.h:12