mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-15 04:21:36 +02:00
Improve code comments
This commit is contained in:
parent
1a1317ab0f
commit
c640856cc1
@ -41,7 +41,7 @@ impl SseEventSender {
|
|||||||
function_name: String,
|
function_name: String,
|
||||||
function_arguments: String,
|
function_arguments: String,
|
||||||
) -> Result<(), SendError<Event>> {
|
) -> Result<(), SendError<Event>> {
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)] // function_call
|
||||||
let message =
|
let message =
|
||||||
ChatCompletionRequestMessage::Assistant(ChatCompletionRequestAssistantMessage {
|
ChatCompletionRequestMessage::Assistant(ChatCompletionRequestAssistantMessage {
|
||||||
content: None,
|
content: None,
|
||||||
@ -78,7 +78,7 @@ impl SseEventSender {
|
|||||||
|
|
||||||
resp.choices[0] = ChatChoiceStream {
|
resp.choices[0] = ChatChoiceStream {
|
||||||
index: 0,
|
index: 0,
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)] // function_call
|
||||||
delta: ChatCompletionStreamResponseDelta {
|
delta: ChatCompletionStreamResponseDelta {
|
||||||
content: None,
|
content: None,
|
||||||
function_call: None,
|
function_call: None,
|
||||||
@ -125,7 +125,7 @@ impl SseEventSender {
|
|||||||
|
|
||||||
resp.choices[0] = ChatChoiceStream {
|
resp.choices[0] = ChatChoiceStream {
|
||||||
index: 0,
|
index: 0,
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)] // function_call
|
||||||
delta: ChatCompletionStreamResponseDelta {
|
delta: ChatCompletionStreamResponseDelta {
|
||||||
content: None,
|
content: None,
|
||||||
function_call: None,
|
function_call: None,
|
||||||
@ -170,7 +170,7 @@ impl SseEventSender {
|
|||||||
|
|
||||||
resp.choices[0] = ChatChoiceStream {
|
resp.choices[0] = ChatChoiceStream {
|
||||||
index: 0,
|
index: 0,
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)] // function_call
|
||||||
delta: ChatCompletionStreamResponseDelta {
|
delta: ChatCompletionStreamResponseDelta {
|
||||||
content: None,
|
content: None,
|
||||||
function_call: None,
|
function_call: None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user