1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A library to interact with OpenAI API to use GPT-3.5 and GPT-4 for chatbots.
//!
//! It takes care of the context and the state of the conversation, and provides a way to define
//! functions that can be called from the chatbot.
//!
//! # Usage
//! The main module to use for the chatbot is `chat_gpt`.
//! It provides a `ChatGPT` struct that can be used to interact with the GPT API.
//!

// The main module to use, most of the use cases will only need this
pub mod chat_gpt;
// Internals, to be used by the library or in case more control is needed
pub mod chat_context;
pub mod chat_response;
pub mod function_specification;
pub mod message;