mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
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:

committed by
Geoff Seemueller

parent
c04e19611e
commit
47272ba350
@@ -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
|
||||
|
Reference in New Issue
Block a user