mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 15:40:57 -07:00
++
This commit is contained in:
@@ -174,12 +174,8 @@ export class GeminiChat {
|
||||
promptId: string,
|
||||
): void {
|
||||
try {
|
||||
const logDir = path.join(
|
||||
process.cwd(),
|
||||
);
|
||||
const logFile = path.join(
|
||||
logDir,
|
||||
process.env['REQUEST_LOG_FILE'] ?? 'requests.log',
|
||||
const logFile = process.env['REQUEST_LOG_FILE'] ?? path.join(
|
||||
process.cwd(), 'requests.log',
|
||||
);
|
||||
if (!fs.existsSync(logFile)) {
|
||||
fs.writeFileSync(logFile, `si:\n${this.systemInstruction}\n`);
|
||||
|
||||
Reference in New Issue
Block a user