-
Notifications
You must be signed in to change notification settings - Fork 263
Closed
Labels
JSChange/fix applies to JS. If all three, use the 'JS & dotnet & Python' labelChange/fix applies to JS. If all three, use the 'JS & dotnet & Python' labelbugSomething isn't workingSomething isn't working
Description
Hola :)
I got a bot running with @microsoft/teams-ai v1.7.4
Everything has been running fine for the past few months but since Friday we have errors when doing streaming responses.
RestError: Only start streaming and continue streaming types are allowed as a typing activity
This looks like there was a change on the API?
An example of the code:
const streamingResponse = new StreamingResponse(context);
streamingResponse.setGeneratedByAILabel(true);
streamingResponse.queueInformativeUpdate(text);
// Calls to an AI that will stream a response
// inside a for loop
streamingResponse.queueTextChunk(text)
await streamingResponse.endStream();
// finishes loopThe solution for now was to disable streaming which is not optimal for end users.
Is there something that can be done while running v1 of the SDK or is the solution is to migrate to v2?
Metadata
Metadata
Assignees
Labels
JSChange/fix applies to JS. If all three, use the 'JS & dotnet & Python' labelChange/fix applies to JS. If all three, use the 'JS & dotnet & Python' labelbugSomething isn't workingSomething isn't working