Skip to content

[Bug] @microsoft/teams-ai v1.7.4 doesn't work anymore with streaming responses. #2644

@sosafe-jose-gonzalez

Description

@sosafe-jose-gonzalez

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 loop

The 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' labelbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions