fix(provider): Fix provider modules for consistency

This commit is contained in:
2025-02-25 13:01:23 +00:00
parent 6916dd9e2a
commit 5dead05324
8 changed files with 4302 additions and 1272 deletions

View File

@ -32,7 +32,7 @@ export class GroqProvider extends MultiModalModel {
// Create a TransformStream to process the input
const transform = new TransformStream<Uint8Array, string>({
async transform(chunk, controller) {
transform: async (chunk, controller) => {
buffer += decoder.decode(chunk, { stream: true });
// Try to parse complete JSON messages from the buffer