fix regex newchat
This commit is contained in:
parent
700a868a3a
commit
148201b5c5
|
@ -162,8 +162,8 @@ export async function main() {
|
|||
|
||||
// Create a new chat on startup.
|
||||
try {
|
||||
const topic = execFileSync('/home/jcarr/go/bin/regex', ['--get-next-auto-topic'], { encoding: 'utf8' });
|
||||
execFileSync('/home/jcarr/go/bin/regex', ['--new-chat', sessionId, topic.trim()]);
|
||||
// const topic = execFileSync('/home/jcarr/go/bin/regex', ['--get-next-auto-topic'], { encoding: 'utf8' });
|
||||
execFileSync('/home/jcarr/go/bin/regex', ['--uuid', sessionId, '--topic', 'blah', 'newchat']);
|
||||
} catch (e) {
|
||||
console.error(`Error creating new chat: ${e}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue