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

committed by
Geoff Seemueller

parent
ceeefeff14
commit
fc22278b58
@@ -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();
|
||||
|
Reference in New Issue
Block a user