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
We need to start untangling our chat completions logic from the React components. The first step is to extract a new method on the ChatCraftClass called completion() so that you can do this anywhere in our code (React or lib code):
Try to separate out the state logic in this code (e.g., for handling scrolling, etc.) from the actual logic for doing the chat completion. The chat.completion() method shouldn't do anything to the UI, only operate on the chat instance.
We need to start untangling our chat completions logic from the React components. The first step is to extract a new method on the
ChatCraftClass
calledcompletion()
so that you can do this anywhere in our code (React or lib code):To get here, my suggestion is:
chat.completion()
method shouldn't do anything to the UI, only operate on thechat
instance.To begin, I would do this work without altering the current code in https://github.com/tarasglek/chatcraft.org/blob/main/src/Chat/ChatBase.tsx#L205. We'll do that in a follow-up.
The text was updated successfully, but these errors were encountered: