This commit is contained in:
Lukian 2023-06-20 15:28:07 +02:00
parent 68f4b60012
commit 41ae7ff4bd
1010 changed files with 38622 additions and 17071 deletions

40
node_modules/openai/dist/api.js generated vendored
View file

@ -5,7 +5,7 @@
* OpenAI API
* APIs for sampling from and fine-tuning language models
*
* The version of the OpenAPI document: 1.2.0
* The version of the OpenAPI document: 1.3.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -32,12 +32,14 @@ const base_1 = require("./base");
exports.ChatCompletionRequestMessageRoleEnum = {
System: 'system',
User: 'user',
Assistant: 'assistant'
Assistant: 'assistant',
Function: 'function'
};
exports.ChatCompletionResponseMessageRoleEnum = {
System: 'system',
User: 'user',
Assistant: 'assistant'
Assistant: 'assistant',
Function: 'function'
};
exports.CreateImageRequestSizeEnum = {
_256x256: '256x256',
@ -116,7 +118,7 @@ exports.OpenAIApiAxiosParamCreator = function (configuration) {
}),
/**
*
* @summary Creates a completion for the chat message
* @summary Creates a model response for the given chat conversation.
* @param {CreateChatCompletionRequest} createChatCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -177,7 +179,7 @@ exports.OpenAIApiAxiosParamCreator = function (configuration) {
}),
/**
*
* @summary Creates a completion for the provided prompt and parameters
* @summary Creates a completion for the provided prompt and parameters.
* @param {CreateCompletionRequest} createCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -543,7 +545,7 @@ exports.OpenAIApiAxiosParamCreator = function (configuration) {
/**
*
* @summary Transcribes audio into the input language.
* @param {File} file The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -599,7 +601,7 @@ exports.OpenAIApiAxiosParamCreator = function (configuration) {
/**
*
* @summary Translates audio into into English.
* @param {File} file The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1024,7 +1026,7 @@ exports.OpenAIApiFp = function (configuration) {
},
/**
*
* @summary Creates a completion for the chat message
* @summary Creates a model response for the given chat conversation.
* @param {CreateChatCompletionRequest} createChatCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1051,7 +1053,7 @@ exports.OpenAIApiFp = function (configuration) {
},
/**
*
* @summary Creates a completion for the provided prompt and parameters
* @summary Creates a completion for the provided prompt and parameters.
* @param {CreateCompletionRequest} createCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1195,7 +1197,7 @@ exports.OpenAIApiFp = function (configuration) {
/**
*
* @summary Transcribes audio into the input language.
* @param {File} file The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1213,7 +1215,7 @@ exports.OpenAIApiFp = function (configuration) {
/**
*
* @summary Translates audio into into English.
* @param {File} file The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1414,7 +1416,7 @@ exports.OpenAIApiFactory = function (configuration, basePath, axios) {
},
/**
*
* @summary Creates a completion for the chat message
* @summary Creates a model response for the given chat conversation.
* @param {CreateChatCompletionRequest} createChatCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1435,7 +1437,7 @@ exports.OpenAIApiFactory = function (configuration, basePath, axios) {
},
/**
*
* @summary Creates a completion for the provided prompt and parameters
* @summary Creates a completion for the provided prompt and parameters.
* @param {CreateCompletionRequest} createCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1549,7 +1551,7 @@ exports.OpenAIApiFactory = function (configuration, basePath, axios) {
/**
*
* @summary Transcribes audio into the input language.
* @param {File} file The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1564,7 +1566,7 @@ exports.OpenAIApiFactory = function (configuration, basePath, axios) {
/**
*
* @summary Translates audio into into English.
* @param {File} file The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1728,7 +1730,7 @@ class OpenAIApi extends base_1.BaseAPI {
}
/**
*
* @summary Creates a completion for the chat message
* @summary Creates a model response for the given chat conversation.
* @param {CreateChatCompletionRequest} createChatCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1751,7 +1753,7 @@ class OpenAIApi extends base_1.BaseAPI {
}
/**
*
* @summary Creates a completion for the provided prompt and parameters
* @summary Creates a completion for the provided prompt and parameters.
* @param {CreateCompletionRequest} createCompletionRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@ -1875,7 +1877,7 @@ class OpenAIApi extends base_1.BaseAPI {
/**
*
* @summary Transcribes audio into the input language.
* @param {File} file The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
@ -1891,7 +1893,7 @@ class OpenAIApi extends base_1.BaseAPI {
/**
*
* @summary Translates audio into into English.
* @param {File} file The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {File} file The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
* @param {string} model ID of the model to use. Only `whisper-1` is currently available.
* @param {string} [prompt] An optional text to guide the model\\\'s style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
* @param {string} [responseFormat] The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.