mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
feat: toggle tool details visible
This commit is contained in:
@@ -1007,7 +1007,7 @@ export namespace Session {
|
||||
async process(stream: StreamTextResult<Record<string, AITool>, never>) {
|
||||
try {
|
||||
let currentText: MessageV2.TextPart | undefined
|
||||
// let reasoningMap: Record<string, MessageV2.ReasoningPart> = {}
|
||||
let reasoningMap: Record<string, MessageV2.ReasoningPart> = {}
|
||||
|
||||
for await (const value of stream.fullStream) {
|
||||
log.info("part", {
|
||||
@@ -1017,7 +1017,6 @@ export namespace Session {
|
||||
case "start":
|
||||
break
|
||||
|
||||
/*
|
||||
case "reasoning-start":
|
||||
if (value.id in reasoningMap) {
|
||||
continue
|
||||
@@ -1055,7 +1054,6 @@ export namespace Session {
|
||||
delete reasoningMap[value.id]
|
||||
}
|
||||
break
|
||||
*/
|
||||
|
||||
case "tool-input-start":
|
||||
const part = await updatePart({
|
||||
|
||||
Reference in New Issue
Block a user