MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / makeModelRequest

Function makeModelRequest

out/cli.cjs:78898–78901  ·  view source on GitHub ↗
(model, task, apiKey, stream4, body, requestOptions = {}, fetchFn = fetch)

Source from the content-addressed store, hash-verified

78896}
78897async function constructModelRequest(model, task, apiKey, stream4, body, requestOptions) {
78898 const url2 = new RequestUrl(model, task, apiKey, stream4, requestOptions);
78899 return {
78900 url: url2.toString(),
78901 fetchOptions: Object.assign(Object.assign({}, buildFetchOptions(requestOptions)), { method: "POST", headers: await getHeaders(url2), body })
78902 };
78903}
78904async function makeModelRequest(model, task, apiKey, stream4, body, requestOptions = {}, fetchFn = fetch) {

Callers 5

generateContentStreamFunction · 0.85
generateContentFunction · 0.85
countTokensFunction · 0.85
embedContentFunction · 0.85
batchEmbedContentsFunction · 0.85

Calls 2

constructModelRequestFunction · 0.85
makeRequestFunction · 0.85

Tested by

no test coverage detected