yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::OpenAIConfig Struct Reference

#include <openai_ai_service.h>

Public Member Functions

 OpenAIConfig ()=default
 
 OpenAIConfig (const std::string &key)
 

Public Attributes

std::string api_key
 
std::string model = "gpt-4o-mini"
 
float temperature = 0.7f
 
int max_output_tokens = 2048
 
std::string system_instruction
 
bool use_function_calling = true
 
std::string prompt_version = "v3"
 
bool verbose = false
 

Detailed Description

Definition at line 18 of file openai_ai_service.h.

Constructor & Destructor Documentation

◆ OpenAIConfig() [1/2]

yaze::cli::OpenAIConfig::OpenAIConfig ( )
default

◆ OpenAIConfig() [2/2]

yaze::cli::OpenAIConfig::OpenAIConfig ( const std::string & key)
inlineexplicit

Definition at line 29 of file openai_ai_service.h.

Member Data Documentation

◆ api_key

std::string yaze::cli::OpenAIConfig::api_key

Definition at line 19 of file openai_ai_service.h.

◆ model

std::string yaze::cli::OpenAIConfig::model = "gpt-4o-mini"

Definition at line 20 of file openai_ai_service.h.

Referenced by yaze::cli::CreateAIServiceStrict().

◆ temperature

float yaze::cli::OpenAIConfig::temperature = 0.7f

Definition at line 21 of file openai_ai_service.h.

◆ max_output_tokens

int yaze::cli::OpenAIConfig::max_output_tokens = 2048

Definition at line 22 of file openai_ai_service.h.

◆ system_instruction

std::string yaze::cli::OpenAIConfig::system_instruction

Definition at line 23 of file openai_ai_service.h.

◆ use_function_calling

bool yaze::cli::OpenAIConfig::use_function_calling = true

Definition at line 24 of file openai_ai_service.h.

Referenced by yaze::cli::CreateAIServiceStrict().

◆ prompt_version

std::string yaze::cli::OpenAIConfig::prompt_version = "v3"

Definition at line 25 of file openai_ai_service.h.

Referenced by yaze::cli::CreateAIServiceStrict().

◆ verbose

bool yaze::cli::OpenAIConfig::verbose = false

Definition at line 26 of file openai_ai_service.h.

Referenced by yaze::cli::CreateAIServiceStrict().


The documentation for this struct was generated from the following file: