diff --git a/src/v1/chat_completion.rs b/src/v1/chat_completion.rs index f66c1e6..b6c2eda 100644 --- a/src/v1/chat_completion.rs +++ b/src/v1/chat_completion.rs @@ -18,9 +18,17 @@ pub struct ChatCompletionRequest { pub model: String, pub messages: Vec, #[serde(skip_serializing_if = "Option::is_none")] + #[deprecated( + since = "2.1.5", + note = "This field is deprecated. Use `tools` instead." + )] pub functions: Option>, #[serde(skip_serializing_if = "Option::is_none")] #[serde(serialize_with = "serialize_function_call")] + #[deprecated( + since = "2.1.5", + note = "This field is deprecated. Use `tool_choice` instead." + )] pub function_call: Option, #[serde(skip_serializing_if = "Option::is_none")] pub temperature: Option,