修复arm的问题

This commit is contained in:
wisdgod
2025-01-29 14:47:59 +08:00
parent 6c982483d5
commit fb0de13712
8 changed files with 114 additions and 56 deletions

View File

@@ -730,7 +730,7 @@ pub async fn handle_chat(
index: 0,
message: Some(Message {
role: Role::Assistant,
content: MessageContent::Text(full_text),
content: MessageContent::Text(full_text.trim_leading_newlines()),
}),
delta: None,
finish_reason: Some(FINISH_REASON_STOP.to_string()),