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

Function generateContent

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

Source from the content-addressed store, hash-verified

79252 apiKey,
79253 /* stream */
79254 true,
79255 JSON.stringify(params),
79256 requestOptions
79257 );
79258 return processStream(response);
79259}
79260async function generateContent(apiKey, model, params, requestOptions) {
79261 const response = await makeModelRequest(
79262 model,
79263 Task.GENERATE_CONTENT,
79264 apiKey,
79265 /* stream */
79266 false,
79267 JSON.stringify(params),
79268 requestOptions
79269 );
79270 const responseJson = await response.json();
79271 const enhancedResponse = addHelpers(responseJson);
79272 return {

Callers 2

sendMessageMethod · 0.85
generateContentMethod · 0.85

Calls 3

makeModelRequestFunction · 0.85
addHelpersFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…