(context, deploymentId, body, options = { requestOptions: {} })
| 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 | } |
| 78370 | function 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 | } |
| 78374 | function _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"], |
no test coverage detected
searching dependent graphs…