diff --git a/ee/tabby-schema/graphql/schema.graphql b/ee/tabby-schema/graphql/schema.graphql index 80df435749c0..ef13c577ecdc 100644 --- a/ee/tabby-schema/graphql/schema.graphql +++ b/ee/tabby-schema/graphql/schema.graphql @@ -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!]! } diff --git a/ee/tabby-webserver/src/service/answer.rs b/ee/tabby-webserver/src/service/answer.rs index e1afb642111b..c602a4ed8269 100644 --- a/ee/tabby-webserver/src/service/answer.rs +++ b/ee/tabby-webserver/src/service/answer.rs @@ -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)); diff --git a/ee/tabby-webserver/src/service/thread.rs b/ee/tabby-webserver/src/service/thread.rs index b5a441e9a545..87c3d3bd5249 100644 --- a/ee/tabby-webserver/src/service/thread.rs +++ b/ee/tabby-webserver/src/service/thread.rs @@ -56,7 +56,7 @@ impl ThreadServiceImpl { self.to_message_attachment_docs(docs.0).await } else { vec![] - } + }, }; output.push(thread::Message {