You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While crafting the prompt in tsx, sometimes I make mistakes with the element types (which are valid in tsx itself unfortunately), I got error message as
Invalid ChatMessage child! Child must be a TSX component that extends PromptElement
To troubleshoot this I would have to
Put try catch around renderPrompt and enable Caught/uncaught Exceptions
Traverse through the invalid element's ancestors to figure out which element it is
We could in the error message point to the problematic child (e.g. -> -> child #2)
While crafting the prompt in tsx, sometimes I make mistakes with the element types (which are valid in tsx itself unfortunately), I got error message as
To troubleshoot this I would have to
try catch
aroundrenderPrompt
and enable Caught/uncaught Exceptions@connor4312's suggestion can help a lot already.
The text was updated successfully, but these errors were encountered: