Cargo Features

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

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

streams

Enables futures and futures-util, stream of reqwest

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

functions

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

Affects chatgpt_rs_fork::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