Remove file upload functionality and related components

The `FileUploadStore` and all file upload features were removed, simplifying the chat interface. This change eliminates unused code, including file handling logic, attachment management, and UI elements, streamlining the application.
This commit is contained in:
geoffsee
2025-05-27 14:15:12 -04:00
committed by Geoff Seemueller
parent c04e19611e
commit 47272ba350
13 changed files with 105 additions and 302 deletions

View File

@@ -6,13 +6,11 @@ export class AssistantSdk {
maxTokens?: number;
userTimezone?: string;
userLocation?: string;
tools?: string[];
}): string {
const {
maxTokens,
userTimezone = "UTC",
userLocation = "",
tools = [],
} = params;
const selectedFewshots = Sdk.selectEquitably?.(few_shots) || few_shots;
const sdkDate =
@@ -23,17 +21,6 @@ export class AssistantSdk {
const now = new Date();
const formattedMinutes = String(now.getMinutes()).padStart(2, "0");
const currentTime = `${now.getHours()}:${formattedMinutes} ${now.getSeconds()}s`;
// const toolsInfo =
// tools
// .map((tool) => {
// switch (tool) {
// // case "user-attachments": return "### Attachments\nUser supplied attachments are normalized to text and will have this header (# Attachment:...) in the message.";
// // case "web-search": return "### Web Search\nResults are optionally available in 'Live Search'.";
// default:
// return `- ${tool}`;
// }
// })
// .join("\n\n") || "- No additional tools selected.";
return `# Assistant Knowledge
## Current Context