Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Update the channel where we are grabbing the llm thoughts #5060

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const submitQuestion = () => {
const message = props.kernelManager.sendMessage('llm_request', {
request: questionString.value
});
llmThoughts.value = [];
emit('question-asked', questionString.value);
// May prefer to use a manual status rather than following this. TBD. Both options work for now
Expand All @@ -110,12 +111,16 @@ const submitQuestion = () => {
});
message.register('llm_thought', (data) => {
thoughts.value = data;
llmThoughts.value = [];
llmThoughts.value.push(data);
llmQuery.value = questionString.value;
emit('llm-thought-output', data);
});
message.register('llm_response', (data) => {
// Check if our llm_response is providing a response text to a user's question
if (data.content.name === 'response_text') {
llmThoughts.value = [];
llmThoughts.value.push(data);
}
thoughts.value = data;
emit('llm-thought-output', data);
});
Expand Down