Improve code comments

This commit is contained in:
Kerollmops 2025-06-10 11:13:32 +02:00
parent 1a1317ab0f
commit c640856cc1
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -41,7 +41,7 @@ impl SseEventSender {
function_name: String,
function_arguments: String,
) -> Result<(), SendError<Event>> {
#[allow(deprecated)]
#[allow(deprecated)] // function_call
let message =
ChatCompletionRequestMessage::Assistant(ChatCompletionRequestAssistantMessage {
content: None,
@ -78,7 +78,7 @@ impl SseEventSender {
resp.choices[0] = ChatChoiceStream {
index: 0,
#[allow(deprecated)]
#[allow(deprecated)] // function_call
delta: ChatCompletionStreamResponseDelta {
content: None,
function_call: None,
@ -125,7 +125,7 @@ impl SseEventSender {
resp.choices[0] = ChatChoiceStream {
index: 0,
#[allow(deprecated)]
#[allow(deprecated)] // function_call
delta: ChatCompletionStreamResponseDelta {
content: None,
function_call: None,
@ -170,7 +170,7 @@ impl SseEventSender {
resp.choices[0] = ChatChoiceStream {
index: 0,
#[allow(deprecated)]
#[allow(deprecated)] // function_call
delta: ChatCompletionStreamResponseDelta {
content: None,
function_call: None,