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 wheneverchatgpt_rs_fork
is added without
somewhere in the dependency tree.default-features = false - 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
- json default
-
Enables serde_json, fs of tokio
- postcard