Guitar
Classes | Typedefs | Functions
GenerativeAI Namespace Reference

Classes

struct  Models
 
struct  Unknown
 
struct  OpenAI
 
struct  Anthropic
 
struct  Google
 
struct  DeepSeek
 
struct  OpenRouter
 
struct  Ollama
 
struct  Credential
 
struct  Model
 
struct  Request
 

Typedefs

typedef std::variant< Unknown, OpenAI, Anthropic, Google, DeepSeek, OpenRouter, OllamaProvider
 

Functions

std::vector< Modelavailable_models ()
 
Request make_request (Provider const &provider, const Model &model, Credential const &cred)
 
static std::vector< Providerall_providers ()
 
static std::string provider_id (Provider const &provider)
 
static std::string provider_description (Provider const &provider)
 
static std::string env_name (Provider const &provider)
 

Typedef Documentation

◆ Provider

Function Documentation

◆ all_providers()

static std::vector<Provider> GenerativeAI::all_providers ( )
inlinestatic

◆ available_models()

std::vector< Model > GenerativeAI::available_models ( )

◆ env_name()

static std::string GenerativeAI::env_name ( Provider const &  provider)
inlinestatic

◆ make_request()

Request GenerativeAI::make_request ( Provider const &  provider,
const Model model,
Credential const &  cred 
)
Here is the call graph for this function:

◆ provider_description()

static std::string GenerativeAI::provider_description ( Provider const &  provider)
inlinestatic

◆ provider_id()

static std::string GenerativeAI::provider_id ( Provider const &  provider)
inlinestatic