for await()

in src/nodes/server/chat-completion.ts [119:129]


        for await (const chunk of textGenerationStream) {
          if (chunk.choices && chunk.choices.length > 0) {
            out += chunk.choices[0].delta.content;
            this.cachedOutput = {
              results: out,
            };
            this.dispatchEvent(
              new CustomEvent("outputs", { detail: this.cachedOutput })
            );
          }
        }