mirror of
https://github.com/katanemo/plano.git
synced 2026-07-02 15:51:02 +02:00
allow for MessageContent to track NULL in special cases
This commit is contained in:
parent
b4dce33e38
commit
71cc5f2d96
5 changed files with 11 additions and 8 deletions
|
|
@ -649,6 +649,7 @@ impl ArchFunctionHandler {
|
|||
for (idx, message) in messages.iter().enumerate() {
|
||||
let mut role = message.role.clone();
|
||||
let mut content = match &message.content {
|
||||
MessageContent::Null => String::new(),
|
||||
MessageContent::Text(text) => text.clone(),
|
||||
MessageContent::Parts(_) => String::new(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue