mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
tweak: make /export go to cwd
This commit is contained in:
parent
bfefdb3752
commit
97893bd7e6
@ -583,9 +583,8 @@ export function Session() {
|
||||
transcript += `---\n\n`
|
||||
}
|
||||
|
||||
// Save to file in data directory
|
||||
const exportDir = path.join(Global.Path.data, "exports")
|
||||
await fs.mkdir(exportDir, { recursive: true })
|
||||
// Save to file in current working directory
|
||||
const exportDir = process.cwd()
|
||||
|
||||
const timestamp = new Date().toISOString().replace(/[:.]/g, "-")
|
||||
const filename = `session-${sessionData.id.slice(0, 8)}-${timestamp}.md`
|
||||
|
||||
@ -24,7 +24,6 @@ export namespace ProviderTransform {
|
||||
const result: ModelMessage[] = []
|
||||
for (let i = 0; i < msgs.length; i++) {
|
||||
const msg = msgs[i]
|
||||
const prevMsg = msgs[i - 1]
|
||||
const nextMsg = msgs[i + 1]
|
||||
|
||||
if ((msg.role === "assistant" || msg.role === "tool") && Array.isArray(msg.content)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user