Skip to content

Commit

Permalink
Merge pull request #32 from receptron/fixStreaming
Browse files Browse the repository at this point in the history
fix streaming
  • Loading branch information
isamu authored May 11, 2024
2 parents d477514 + 33f4da5 commit 00abd08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/graph_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const messages = [

Array.from(messages.keys()).forEach((k) => {
const message = messages[k];
const inputs = k > 2 ? ["streamMockAgent" + (k - 3)] : ["echo"];
const inputs = k > 2 ? [":streamMockAgent" + (k - 3)] : [":echo"];
graph_data_stream["nodes"]["streamMockAgent" + k] = {
agent: "streamMockAgent",
inputs,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useStreamData = () => {
streamData.value[nodeId] = (streamData.value[nodeId] || "") + token;
};
const streamAgentFilter: AgentFilterFunction = async (context, next) => {
context.params.streamCallback = (token: string) => {
context.filterParams.streamTokenCallback = (token: string) => {
outSideFunciton(context.debugInfo.nodeId, token);
};
return next(context);
Expand Down

0 comments on commit 00abd08

Please sign in to comment.