mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-12 11:48:42 +00:00
Revert "fix: title gen when first msg(s) are shell invocations (#4874)"
This reverts commit 17e8322c29.
This commit is contained in:
@@ -283,7 +283,7 @@ export namespace SessionPrompt {
|
||||
session: await Session.get(sessionID),
|
||||
modelID: lastUser.model.modelID,
|
||||
providerID: lastUser.model.providerID,
|
||||
message: msgs.find((m) => m.info.role === "user" && !m.parts.every((p) => "synthetic" in p && p.synthetic))!,
|
||||
message: msgs.find((m) => m.info.role === "user")!,
|
||||
history: msgs,
|
||||
})
|
||||
|
||||
@@ -1466,7 +1466,6 @@ export namespace SessionPrompt {
|
||||
content: "Generate a title for this conversation:\n",
|
||||
},
|
||||
...MessageV2.toModelMessage([
|
||||
...input.history,
|
||||
{
|
||||
info: {
|
||||
id: Identifier.ascending("message"),
|
||||
|
||||
Reference in New Issue
Block a user