MCPcopy
hub / github.com/di-sukharev/opencommit / _getImageGenerationsSend

Function _getImageGenerationsSend

out/cli.cjs:78368–78379  ·  view source on GitHub ↗
(context, deploymentId, body, options = { requestOptions: {} })

Source from the content-addressed store, hash-verified

78366 };
78367 const azure = Object.assign(Object.assign({}, !(azureExtensionOptions === null || azureExtensionOptions === void 0 ? void 0 : azureExtensionOptions.extensions) ? {} : { dataSources: azureExtensionOptions.extensions }), !(azureExtensionOptions === null || azureExtensionOptions === void 0 ? void 0 : azureExtensionOptions.enhancements) ? {} : { enhancements: azureExtensionOptions.enhancements });
78368 return _getChatCompletionsSend(context, deploymentName, Object.assign(Object.assign({ messages }, rest), azure), coreOptions);
78369}
78370function streamChatCompletions(context, deploymentName, messages, options = { requestOptions: {} }) {
78371 const response = _getChatCompletionsSendX(context, deploymentName, messages, Object.assign(Object.assign({}, options), { stream: true }));
78372 return getOaiSSEs(response, getChatCompletionsResult);
78373}
78374function _getImageGenerationsSend(context, deploymentId, body, options = { requestOptions: {} }) {
78375 return context.path("/deployments/{deploymentId}/images/generations", deploymentId).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
78376 model: body["model"],
78377 prompt: body["prompt"],
78378 n: body["n"],
78379 size: body["size"],
78380 response_format: body["responseFormat"],
78381 quality: body["quality"],
78382 style: body["style"],

Callers 1

getImageGenerationsFunction · 0.85

Calls 3

postMethod · 0.80
pathMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…