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
TODO: try to use _populateChatContent. Can't currently because this doesn't append; it modifies in place
createEntryConversation and updateEntryConversation have extremely similar code for calling an LLM and updating an EntryConversation document with the results. However, updateEntryConversation appends a new message to EntryConversation.messages, while createEntryConversation does not. This difference made it difficult to use the same helper function between the two.
Analyze the functions createEntryConversation and updateEntryConversation to see if it's possible to refactor them and reduce code duplication.
The text was updated successfully, but these errors were encountered:
TODO: try to use _populateChatContent. Can't currently because this doesn't append; it modifies in place
createEntryConversation
andupdateEntryConversation
have extremely similar code for calling an LLM and updating an EntryConversation document with the results. However,updateEntryConversation
appends a new message to EntryConversation.messages, whilecreateEntryConversation
does not. This difference made it difficult to use the same helper function between the two.Analyze the functions
createEntryConversation
andupdateEntryConversation
to see if it's possible to refactor them and reduce code duplication.The text was updated successfully, but these errors were encountered: