mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-09-02 15:19:29 +00:00
Deprecate functions
and function_call
This commit is contained in:
@ -18,9 +18,17 @@ pub struct ChatCompletionRequest {
|
|||||||
pub model: String,
|
pub model: String,
|
||||||
pub messages: Vec<ChatCompletionMessage>,
|
pub messages: Vec<ChatCompletionMessage>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
#[deprecated(
|
||||||
|
since = "2.1.5",
|
||||||
|
note = "This field is deprecated. Use `tools` instead."
|
||||||
|
)]
|
||||||
pub functions: Option<Vec<Function>>,
|
pub functions: Option<Vec<Function>>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
#[serde(serialize_with = "serialize_function_call")]
|
#[serde(serialize_with = "serialize_function_call")]
|
||||||
|
#[deprecated(
|
||||||
|
since = "2.1.5",
|
||||||
|
note = "This field is deprecated. Use `tool_choice` instead."
|
||||||
|
)]
|
||||||
pub function_call: Option<FunctionCallType>,
|
pub function_call: Option<FunctionCallType>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub temperature: Option<f64>,
|
pub temperature: Option<f64>,
|
||||||
|
Reference in New Issue
Block a user