Remove unused services and refactor SDK structure

Deleted outdated SDKs and services, including DocumentService and markdown-sdk. Consolidated and relocated SDKs into a unified "providers" structure to improve maintainability. Updated imports and adjusted utils naming for consistency.
This commit is contained in:
geoffsee
2025-05-27 14:46:32 -04:00
committed by Geoff Seemueller
parent ceeefeff14
commit fc22278b58
24 changed files with 28 additions and 521 deletions

View File

@@ -1,4 +1,4 @@
import { Sdk } from "./sdk";
import { Utils } from "./utils";
import few_shots from "../prompts/few_shots";
export class AssistantSdk {
@@ -12,10 +12,10 @@ export class AssistantSdk {
userTimezone = "UTC",
userLocation = "",
} = params;
const selectedFewshots = Sdk.selectEquitably?.(few_shots) || few_shots;
const selectedFewshots = Utils.selectEquitably?.(few_shots) || few_shots;
const sdkDate =
typeof Sdk.getCurrentDate === "function"
? Sdk.getCurrentDate()
typeof Utils.getCurrentDate === "function"
? Utils.getCurrentDate()
: new Date().toISOString();
const [currentDate] = sdkDate.split("T");
const now = new Date();