Skip to content

Commit

Permalink
Bits
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Jun 28, 2023
1 parent 9e7a7b0 commit f35545a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apps/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function Chat() {
switch (chatModeId) {
case 'immediate':
case 'immediate-follow-up':
return await runAssistantUpdatingState(conversationId, history, chatLLMId, systemPurposeId);
return await runAssistantUpdatingState(conversationId, history, chatLLMId, systemPurposeId, true, chatModeId === 'immediate-follow-up');
case 'react':
if (lastMessage?.text) {
setMessages(conversationId, history);
Expand Down
5 changes: 3 additions & 2 deletions src/apps/chat/editors/chat-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { createAssistantTypingMessage, updatePurposeInHistory } from './editors'
/**
* The main "chat" function. TODO: this is here so we can soon move it to the data model.
*/
export async function runAssistantUpdatingState(conversationId: string, history: DMessage[], assistantLlmId: DLLMId, systemPurpose: SystemPurposeId) {
export async function runAssistantUpdatingState(conversationId: string, history: DMessage[], assistantLlmId: DLLMId, systemPurpose: SystemPurposeId, _autoTitle: boolean, _autoSuggestions: boolean) {

// update the system message from the active Purpose, if not manually edited
history = updatePurposeInHistory(conversationId, history, systemPurpose);
Expand All @@ -36,7 +36,8 @@ export async function runAssistantUpdatingState(conversationId: string, history:
startTyping(conversationId, null);

// update text, if needed
await autoTitle(conversationId);
if (_autoTitle)
await autoTitle(conversationId);
}


Expand Down

0 comments on commit f35545a

Please sign in to comment.