mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
**Remove dead links and redundant comments; improve styling and clarity across multiple files**
- Removed outdated links and unused properties in Sidebar and Welcome Home Text files. - Dropped extraneous comments and consolidated imports in server files for streamlined code. - Enhanced MarkdownEditor visuals with a colorful border for better user experience.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Utils } from "./utils.ts";
|
||||
import few_shots from "../prompts/few_shots.ts";
|
||||
import { Utils } from "./utils";
|
||||
import few_shots from "../prompts/few_shots";
|
||||
|
||||
export class AssistantSdk {
|
||||
static getAssistantPrompt(params: {
|
||||
@@ -12,12 +12,10 @@ export class AssistantSdk {
|
||||
userTimezone = "UTC",
|
||||
userLocation = "",
|
||||
} = params;
|
||||
// Handle both nested and flat few_shots structures
|
||||
// console.log('[DEBUG_LOG] few_shots:', JSON.stringify(few_shots));
|
||||
let selectedFewshots = Utils.selectEquitably?.(few_shots);
|
||||
// console.log('[DEBUG_LOG] selectedFewshots after Utils.selectEquitably:', JSON.stringify(selectedFewshots));
|
||||
if (!selectedFewshots) {
|
||||
// If Utils.selectEquitably returns undefined, use few_shots directly
|
||||
selectedFewshots = few_shots;
|
||||
// console.log('[DEBUG_LOG] selectedFewshots after fallback:', JSON.stringify(selectedFewshots));
|
||||
}
|
||||
@@ -30,7 +28,7 @@ export class AssistantSdk {
|
||||
return `# Assistant Knowledge
|
||||
## Current Context
|
||||
- **Date**: ${currentDate} ${currentTime}
|
||||
- **Web Host**: geoff.seemueller.io
|
||||
- Web Host open-gsio.seemueller.workers.dev
|
||||
${maxTokens ? `- **Response Limit**: ${maxTokens} tokens (maximum)` : ""}
|
||||
- **Lexicographical Format**: Commonmark marked.js with gfm enabled.
|
||||
- **User Location**: ${userLocation || "Unknown"}
|
||||
|
@@ -4,8 +4,8 @@ const a = {
|
||||
};
|
||||
|
||||
const b = {
|
||||
"Calculate the number of unique ways to arrange the letters in the word SUCCESS.": `
|
||||
Alright, let's tackle 'SUCCESS' and see just how unique it can get!
|
||||
"Calculate the number of unique ways to arrange the letters in the word SUCCESS.":
|
||||
`Alright, let's tackle 'SUCCESS' and see just how unique it can get!
|
||||
### Step 1: Count the Letters
|
||||
The word 'SUCCESS' has 7 letters, but it’s no free-for-all—there are repeats!
|
||||
- S: 3 times
|
||||
@@ -60,7 +60,6 @@ There are 34,650 unique arrangements of 'MISSISSIPPI'.`,
|
||||
};
|
||||
|
||||
const c = {
|
||||
// c remains unchanged as it contains image generation prompts
|
||||
"Render a Greek statue with warm marble tones and realistic proportions.":
|
||||
"I don't have the ability to generate images right now. ",
|
||||
};
|
||||
|
Reference in New Issue
Block a user