MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isAsyncIterable

Function isAsyncIterable

ai/ai.ts:1874–1875  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

1872
1873const isAsyncIterable = (value: any): value is AsyncIterable<any> =>
1874 !!value && typeof value[Symbol.asyncIterator] === "function";
1875
1876const readResponseBodyAsText = async (data: any): Promise<string> => {
1877 if (typeof data === "string") return data;
1878 if (Buffer.isBuffer(data)) return data.toString("utf8");

Callers 2

readResponseBodyAsTextFunction · 0.85
parseOpenAIResponseDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected