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

Function generateContentStream

out/cli.cjs:79242–79253  ·  view source on GitHub ↗
(apiKey, model, params, requestOptions)

Source from the content-addressed store, hash-verified

79240 candidateIndex++;
79241 }
79242 if (response.usageMetadata) {
79243 aggregatedResponse.usageMetadata = response.usageMetadata;
79244 }
79245 }
79246 return aggregatedResponse;
79247}
79248async function generateContentStream(apiKey, model, params, requestOptions) {
79249 const response = await makeModelRequest(
79250 model,
79251 Task.STREAM_GENERATE_CONTENT,
79252 apiKey,
79253 /* stream */
79254 true,
79255 JSON.stringify(params),
79256 requestOptions

Callers 2

sendMessageStreamMethod · 0.85
generateContentStreamMethod · 0.85

Calls 2

makeModelRequestFunction · 0.85
processStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…