First pass on fixes
This commit is contained in:
parent
5826d89b97
commit
2f3be75fc7
269 changed files with 1593 additions and 2574 deletions
|
@ -106,11 +106,9 @@ pub fn validate_generate_content_request(request: &GenerateContentRequest) -> Re
|
|||
.contents
|
||||
.iter()
|
||||
.find(|content| content.role == Role::User)
|
||||
{
|
||||
if user_content.parts.is_empty() {
|
||||
&& user_content.parts.is_empty() {
|
||||
bail!("User content must contain at least one part");
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue