add 'regex.' to the filename
This commit is contained in:
parent
d021fcadad
commit
7163afdacc
|
@ -113,7 +113,7 @@ export class LoggingContentGenerator implements ContentGenerator {
|
||||||
this.logApiRequest(toContents(req.contents), req.model, userPromptId);
|
this.logApiRequest(toContents(req.contents), req.model, userPromptId);
|
||||||
try {
|
try {
|
||||||
const sessionId = this.config.getSessionId();
|
const sessionId = this.config.getSessionId();
|
||||||
const fileName = `${sessionId}.gemini-api-request.${this.requestCounter}.json`;
|
const fileName = `regex.${sessionId}.gemini-api-request.${this.requestCounter}.json`;
|
||||||
const filePath = path.join('/tmp', fileName);
|
const filePath = path.join('/tmp', fileName);
|
||||||
const jsonPayload = JSON.stringify(req, null, 2);
|
const jsonPayload = JSON.stringify(req, null, 2);
|
||||||
fs.writeFileSync(filePath, jsonPayload);
|
fs.writeFileSync(filePath, jsonPayload);
|
||||||
|
@ -142,7 +142,7 @@ export class LoggingContentGenerator implements ContentGenerator {
|
||||||
this.logApiRequest(toContents(req.contents), req.model, userPromptId);
|
this.logApiRequest(toContents(req.contents), req.model, userPromptId);
|
||||||
|
|
||||||
const sessionId = this.config.getSessionId();
|
const sessionId = this.config.getSessionId();
|
||||||
const fileName = `${sessionId}.gemini-api-request.${this.requestCounter}.json`;
|
const fileName = `regex.${sessionId}.gemini-api-request.${this.requestCounter}.json`;
|
||||||
const filePath = path.join('/tmp', fileName);
|
const filePath = path.join('/tmp', fileName);
|
||||||
const jsonPayload = JSON.stringify(req, null, 2);
|
const jsonPayload = JSON.stringify(req, null, 2);
|
||||||
fs.writeFileSync(filePath, jsonPayload);
|
fs.writeFileSync(filePath, jsonPayload);
|
||||||
|
|
Loading…
Reference in New Issue