MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / generateContentStream

Method generateContentStream

out/cli.cjs:79622–79627  ·  view source on GitHub ↗

* Makes a single streaming call to the model and returns an object * containing an iterable stream that iterates over all chunks in the * streaming response as well as a promise that returns the final * aggregated response. * * Fields set in the optional SingleRequestOptions p

(request3, requestOptions = {})

Source from the content-addressed store, hash-verified

79620 * containing an iterable stream that iterates over all chunks in the
79621 * streaming response as well as a promise that returns the final
79622 * aggregated response.
79623 *
79624 * Fields set in the optional {@link SingleRequestOptions} parameter will
79625 * take precedence over the {@link RequestOptions} values provided to
79626 * {@link GoogleGenerativeAI.getGenerativeModel }.
79627 */
79628 async generateContentStream(request3, requestOptions = {}) {
79629 var _a5;
79630 const formattedParams = formatGenerateContentInput(request3);

Callers

nothing calls this directly

Calls 2

generateContentStreamFunction · 0.85

Tested by

no test coverage detected