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
@@ -61,9 +62,9 @@ The app's settings are handled by a `SettingsContext` object, which has dialog U
61
62
| File | Type | Information |
62
63
| --- | --- | --- |
63
64
| App.tsx |`App`| Root of the app, publishes the `StylesContext` and `SettingsContext`|
64
-
|AppContent.tsx |`ChatSession`| Owns the `ChatElement` list, and handles any writes to that list |
65
-
|AppContent.tsx |`AutomatedChatSession`| Populates the `ChatSession` with either scripted responses or by creating components that query OpenAi |
66
-
| Chat.tsx | `Chat` | The scrolling list of chat entries. Publishes the `FeedbackContext`, `ChatHistoryContext`, and `ChatScrollContext` services. Hosts a `ChatEntry` for the user input. Hosts the dialogs of the app (`FeedbackPopup` and `SettingsPopups`).
65
+
|ChatSession.tsx |`ChatSession`| Owns the `ChatElement` list, publishes the `ChatHistoryContext`, and handles any writes to that list |
66
+
|ChatSession.tsx |`AutomatedChatSession`| Populates the `ChatSession` with either scripted responses or by creating components that query OpenAi |
67
+
| Chat.tsx | `Chat` | The scrolling list of chat entries. Publishes the `FeedbackContext`, and `ChatScrollContext` services. Hosts a `ChatEntry` for the user input. Hosts the dialogs of the app (`FeedbackPopup` and `SettingsPopups`).
67
68
| Chat.tsx |`ChatEntry`| Takes in the user's text input |
68
69
| Feedback.tsx |`FeedbackPopup`| Popup for giving feedback on AI responses |
69
70
| Settings.tsx |`SettingsPopup`| Popup that shows controls for modifying the `SettingsContext`|
instructions: `You are an intuitive assistant helping the user with a project. Your only job is need to determine the primary intent of the user's last prompt.
47
45
If and only if you are absolutely certain the user's primary intent is to see an image, respond with exactly the string "${imageIntentSentinel}". Otherwise, respond with your description of their intent.`,
48
46
identifier: "INTENT:",
49
47
prompt: prompt,
50
-
onError: (error)=>{
48
+
onError: ()=>{
51
49
setIsRequestForImage(false);
52
50
},
53
51
onResult: (result)=>{
@@ -83,7 +81,7 @@ Where items enclosed in brackets ([]) would be replaced with an appropriate sugg
83
81
Respond with the image prompt string in the required format. Do not respond conversationally.`,
84
82
identifier: "KEYWORDS:",
85
83
prompt: prompt,
86
-
onError: (error)=>{
84
+
onError: ()=>{
87
85
setIsRequestForImage(false);
88
86
},
89
87
onResult: (result)=>{
@@ -107,14 +105,12 @@ Respond with the image prompt string in the required format. Do not respond conv
0 commit comments