Cargo Features

[dependencies]
chatgpt_rs = { version = "1.2.3", default-features = false, features = ["streams", "functions", "functions_extra", "json", "postcard"] }
default = json

The json feature is set by default whenever chatgpt_rs is added without default-features = false somewhere in the dependency tree.

streams

Enables eventsource-stream, futures, and futures-util, stream of reqwest ^0.11.20

Affects types::ResponseChunk, types::InboundResponseChunk, types::InboundChunkChoice, types::InboundChunkPayload

functions

Enables async-recursion, async-trait, gpt_fn_macros, schemars, and serde_json

Affects chatgpt::functions, config::ModelConfiguration.function_validation, converse::Conversation.always_send_functions, types::ChatMessage.function_call, types::CompletionRequest.functions

functions_extra

Enables chrono, either, url and uuid1 of schemars

json default

Enables serde_json, fs of tokio

postcard

Enables postcard, fs of tokio