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

Function formatGenerateContentInput

out/cli.cjs:79351–79363  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

79349 } else if (containsGenerateContentRequest) {
79350 formattedGenerateContentRequest = Object.assign(Object.assign({}, formattedGenerateContentRequest), params.generateContentRequest);
79351 } else {
79352 const content = formatNewContent(params);
79353 formattedGenerateContentRequest.contents = [content];
79354 }
79355 return { generateContentRequest: formattedGenerateContentRequest };
79356}
79357function formatGenerateContentInput(params) {
79358 let formattedRequest;
79359 if (params.contents) {
79360 formattedRequest = params;
79361 } else {
79362 const content = formatNewContent(params);
79363 formattedRequest = { contents: [content] };
79364 }
79365 if (params.systemInstruction) {
79366 formattedRequest.systemInstruction = formatSystemInstruction(params.systemInstruction);

Callers 2

generateContentMethod · 0.85
generateContentStreamMethod · 0.85

Calls 2

formatNewContentFunction · 0.85
formatSystemInstructionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…