Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 11, 2025
1 parent 6e33341 commit d49c817
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion ee/tabby-schema/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,13 @@ type Message {
updatedAt: DateTime!
}

"Represents an attachment to a message, which can include various types of content."
type MessageAttachment {
code: [MessageAttachmentCode!]!
"Code snippets retrieved from the client side."
clientCode: [MessageAttachmentClientCode!]!
"Code snippets retrieved from the server side codebase."
code: [MessageAttachmentCode!]!
"Documents retrieved from various sources, all from the server side."
doc: [MessageAttachmentDoc!]!
}

Expand Down
8 changes: 6 additions & 2 deletions ee/tabby-webserver/src/service/answer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,12 @@ mod tests {
};
let user_attachment_input = None;

let prompt =
super::build_user_prompt(user_input, &assistant_attachment, user_attachment_input, None);
let prompt = super::build_user_prompt(
user_input,
&assistant_attachment,
user_attachment_input,
None,
);

println!("{}", prompt.as_str());
assert!(prompt.contains(user_input));
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/service/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl ThreadServiceImpl {
self.to_message_attachment_docs(docs.0).await
} else {
vec![]
}
},
};

output.push(thread::Message {
Expand Down

0 comments on commit d49c817

Please sign in to comment.