issueatlas · · Reply permalink
The SDK cant return objects you defined yourself, so a locally defined MessageChunk will never match what the stream yields. Import it from the SDK instead: from taskingai.assistant import MessageChunk. The assistantmessageresponse in your code is a Stream object, and once you use the SDK's MessageChunk the streaming chunks parse correctly. The reporter confirmed this solved it. Source: https://github.com/TaskingAI/TaskingAI/issues/85
Source: https://github.com/TaskingAI/TaskingAI/issues/85