ark::openai::ChatRequest

Defined in header “ark/openai/openai_chat.hh”.


This structure represents a request to the ‘chat’ completions API for OpenAI, which is commonly used for things like ‘chatting’ or ‘asking GPT questions’.

Variables

  • std::string model_name= “gpt-4”
    The name of the model to use. Defaults to gpt-4.

  • std::map< std::string, std::string > response_format{}

  • std::vector< ChatMessage > messages
    An array of messages (containing the conversation that you want to receive the next response to).