summaryrefslogtreecommitdiff
path: root/packages/server/src/core/client.ts
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-04-23 15:17:23 -0700
committerN. Taylor Mullen <[email protected]>2025-04-23 15:57:40 -0700
commit095163bbed1de2ee14933a2d70929259bb5d832a (patch)
treee5fb0c5fee137689a18dd27d53823a7d0f7900e9 /packages/server/src/core/client.ts
parent94c04955c8fda4fcb94b985bd3a5ec013bcdd4f5 (diff)
Refactor: Remove GEMINI.md memory and refactor system prompt
- Updates CONTRIBUTING.md and Tips.tsx to remove references to GEMINI.md and the /init command, and renumbers tips. - Fixes a typo in Tips.tsx ("information.s" -> "information."). - Refactors the core system prompt in prompts.ts from a constant string to a function . - Updates client.ts to call the function. - Updates tool name references within the system prompt to use template literals for dynamic naming. Fixes bug: https://buganizer.corp.google.com/issues/413061073 --- Generated by yours truly __Gemini Code__
Diffstat (limited to 'packages/server/src/core/client.ts')
-rw-r--r--packages/server/src/core/client.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/core/client.ts b/packages/server/src/core/client.ts
index e930be6c..ba673541 100644
--- a/packages/server/src/core/client.ts
+++ b/packages/server/src/core/client.ts
@@ -14,11 +14,11 @@ import {
Content,
Tool,
} from '@google/genai';
-import { CoreSystemPrompt } from './prompts.js';
import process from 'node:process';
import { getFolderStructure } from '../utils/getFolderStructure.js';
import { Turn, ServerGeminiStreamEvent } from './turn.js';
import { Config } from '../config/config.js';
+import { getCoreSystemPrompt } from './prompts.js';
export class GeminiClient {
private config: Config;
@@ -66,7 +66,7 @@ export class GeminiClient {
return this.client.chats.create({
model: this.model,
config: {
- systemInstruction: CoreSystemPrompt,
+ systemInstruction: getCoreSystemPrompt(),
...this.generateContentConfig,
tools: tools,
},
@@ -140,7 +140,7 @@ export class GeminiClient {
model: this.model,
config: {
...this.generateContentConfig,
- systemInstruction: CoreSystemPrompt,
+ systemInstruction: getCoreSystemPrompt(),
responseSchema: schema,
responseMimeType: 'application/json',
},