WolframResearch / Chatbook

Wolfram Notebooks + LLMs
MIT License
73 stars 8 forks source link

Cells without a style cause internal errors when included in chat history #726

Closed rhennigan closed 1 week ago

rhennigan commented 1 week ago

image

Debug Data | Property | Value | | --- | --- | | Name | ``"Wolfram/Chatbook"`` | | Version | ``"1.4.6"`` | | ReleaseID | ``"$RELEASE_ID$"`` | | EvaluationEnvironment | ``"Session"`` | | FrontEndVersion | ``"Desktop: 14.0 for Microsoft Windows (64-bit) (December 12, 2023)"`` | | KernelVersion | ``"14.0.0 for Microsoft Windows (64-bit) (December 13, 2023)"`` | | SystemID | ``"Windows-x86-64"`` | | Notebooks | ``True`` | | DynamicEvaluation | ``False`` | | SynchronousEvaluation | ``False`` | | TaskEvaluation | ``False`` | ## Settings | Property | Value | | --- | --- | | StyleSheetVersion | ``"1.4.6.3924158197"`` | ## Stack Data ``` catchTop setServiceCaller EvaluateChatInput withChatState withToolBox withBasePromptBuilder EvaluateChatInput withChatState sendChat catchTopAs constructMessages makeChatMessages makeChatMessages0 toMessage$28037 toMessage0$28037 catchTop makeCellMessage cellRole throwInternalFailure ``` ## Failure Data ``` <| "Evaluation" :> Wolfram`Chatbook`ChatMessages`Private`cellRole[Cell["test cell, please ignore", GeneratedCell -> True, CellAutoOverwrite -> True, CellChangeTimes -> {3.92858473517679*^9}]] "Arguments" -> {} "Stack" :> Wolfram`Chatbook`Common`Private`$stack$28146 |> ```