ark::openai

Classes

Functions

Declared in “ark/openai/openai_chat.hh”:

  • ChatMessage make_chat_request(const OpenAiRequestConfig & config, const ChatRequest & request)
    Makes a request to OpenAI with the given ChatRequest object, and returns a chosen chat message as a response. Throws if it times out.

Declared in “ark/openai/openai_tts.hh”:

  • core::ByteBuffer make_text_to_speech_request(const OpenAiRequestConfig & config, const TextToSpeechRequest & request)
    Makes a request to OpenAI with teh given text-to-speech request. The response will be a byte buffer containing the data in the format you requestd. Throws on error.