Skip to content

Commit

Permalink
re-generate after discrimintaor fix (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
deekshas8 authored Oct 4, 2024
1 parent d69677f commit 540bfc5
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import type { AzureOpenAiAzureSearchChatExtensionConfiguration } from './azure-search-chat-extension-configuration.js';
import type { AzureOpenAiAzureCosmosDBChatExtensionConfiguration } from './azure-cosmos-db-chat-extension-configuration.js';
/**
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
* The use of this configuration is compatible only with Azure OpenAI.
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
* The use of this configuration is compatible only with Azure OpenAI.
*/
export type AzureOpenAiAzureChatExtensionConfiguration =
| ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

/**
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
* The use of this configuration is compatible only with Azure OpenAI.
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
* The use of this configuration is compatible only with Azure OpenAI.
*/
export type AzureOpenAiAzureChatExtensionType =
| 'azure_search'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/
import type { AzureOpenAiCitation } from './citation.js';
/**
* A representation of the additional context information available when Azure OpenAI chat extensions are involved
* in the generation of a corresponding chat completions response. This context information is only populated when
* using an Azure OpenAI request configured to use a matching extension.
* A representation of the additional context information available when Azure OpenAI chat extensions are involved
* in the generation of a corresponding chat completions response. This context information is only populated when
* using an Azure OpenAI request configured to use a matching extension.
*/
export type AzureOpenAiAzureChatExtensionsMessageContext = {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiAzureChatExtensionType } from './azure-chat-extension-type.js';
import type { AzureOpenAiAzureCosmosDBChatExtensionParameters } from './azure-cosmos-db-chat-extension-parameters.js';
/**
* A specific representation of configurable options for Azure Cosmos DB when using it as an Azure OpenAI chat
* extension.
*/
export type AzureOpenAiAzureCosmosDBChatExtensionConfiguration = {
type: AzureOpenAiAzureChatExtensionType;
type: string;
} & {
parameters: AzureOpenAiAzureCosmosDBChatExtensionParameters;
} & Record<string, any>;
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiAzureChatExtensionType } from './azure-chat-extension-type.js';
import type { AzureOpenAiAzureSearchChatExtensionParameters } from './azure-search-chat-extension-parameters.js';
/**
* A specific representation of configurable options for Azure Search when using it as an Azure OpenAI chat
* extension.
*/
export type AzureOpenAiAzureSearchChatExtensionConfiguration = {
type: AzureOpenAiAzureChatExtensionType;
type: string;
} & {
parameters: AzureOpenAiAzureSearchChatExtensionParameters;
} & Record<string, any>;
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageRole } from './chat-completion-request-message-role.js';
import type { AzureOpenAiChatCompletionMessageToolCall } from './chat-completion-message-tool-call.js';
import type { AzureOpenAiAzureChatExtensionsMessageContext } from './azure-chat-extensions-message-context.js';
/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageAssistant' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageAssistant = {
role: AzureOpenAiChatCompletionRequestMessageRole;
role: string;
} & {
/**
* The contents of the message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageContentPartType } from './chat-completion-request-message-content-part-type.js';
import type { AzureOpenAiImageDetailLevel } from './image-detail-level.js';
/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageContentPartImage' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageContentPartImage = {
type: AzureOpenAiChatCompletionRequestMessageContentPartType;
type: string;
} & {
/**
* Either a URL of the image or the base64 encoded image data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageContentPartType } from './chat-completion-request-message-content-part-type.js';

/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageContentPartText' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageContentPartText = {
type: AzureOpenAiChatCompletionRequestMessageContentPartType;
type: string;
} & {
/**
* The text content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageRole } from './chat-completion-request-message-role.js';

/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageFunction' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageFunction = {
role: AzureOpenAiChatCompletionRequestMessageRole;
role: string;
} & {
/**
* The role of the messages author, in this case `function`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageRole } from './chat-completion-request-message-role.js';

/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageSystem' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageSystem = {
role: AzureOpenAiChatCompletionRequestMessageRole;
role: string;
} & {
/**
* The contents of the message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageRole } from './chat-completion-request-message-role.js';

/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageTool' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageTool = {
role: AzureOpenAiChatCompletionRequestMessageRole;
role: string;
} & {
/**
* Tool call that this message is responding to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiChatCompletionRequestMessageRole } from './chat-completion-request-message-role.js';
import type { AzureOpenAiChatCompletionRequestMessageContentPart } from './chat-completion-request-message-content-part.js';
/**
* Representation of the 'AzureOpenAiChatCompletionRequestMessageUser' schema.
*/
export type AzureOpenAiChatCompletionRequestMessageUser = {
role: AzureOpenAiChatCompletionRequestMessageRole;
role: string;
} & {
content: string | AzureOpenAiChatCompletionRequestMessageContentPart[] | null;
} & Record<string, any>;
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export type AzureOpenAiCreateChatCompletionRequest =
*/
messages: AzureOpenAiChatCompletionRequestMessage[];
/**
* The configuration entries for Azure OpenAI chat extensions that use them.
* This additional specification is only compatible with Azure OpenAI.
* The configuration entries for Azure OpenAI chat extensions that use them.
* This additional specification is only compatible with Azure OpenAI.
*/
data_sources?: AzureOpenAiAzureChatExtensionConfiguration[];
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataAuthenticationType } from './on-your-data-authentication-type.js';

/**
* The authentication options for Azure OpenAI On Your Data when using an API key.
*/
export type AzureOpenAiOnYourDataApiKeyAuthenticationOptions = {
type: AzureOpenAiOnYourDataAuthenticationType;
type: string;
} & {
/**
* The API key to use for authentication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataAuthenticationType } from './on-your-data-authentication-type.js';

/**
* The authentication options for Azure OpenAI On Your Data when using a connection string.
*/
export type AzureOpenAiOnYourDataConnectionStringAuthenticationOptions = {
type: AzureOpenAiOnYourDataAuthenticationType;
type: string;
} & {
/**
* The connection string to use for authentication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataVectorizationSourceType } from './on-your-data-vectorization-source-type.js';

/**
* The details of a a vectorization source, used by Azure OpenAI On Your Data when applying vector search, that is based
* on an internal embeddings model deployment name in the same Azure OpenAI resource.
*/
export type AzureOpenAiOnYourDataDeploymentNameVectorizationSource = {
type: AzureOpenAiOnYourDataVectorizationSourceType;
type: string;
} & {
/**
* Specifies the name of the model deployment to use for vectorization. This model deployment must be in the same Azure OpenAI resource, but On Your Data will use this model deployment via an internal call rather than a public one, which enables vector search even in private networks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataVectorizationSourceType } from './on-your-data-vectorization-source-type.js';
import type { AzureOpenAiOnYourDataApiKeyAuthenticationOptions } from './on-your-data-api-key-authentication-options.js';
/**
* The details of a a vectorization source, used by Azure OpenAI On Your Data when applying vector search, that is based
* on a public Azure OpenAI endpoint call for embeddings.
*/
export type AzureOpenAiOnYourDataEndpointVectorizationSource = {
type: AzureOpenAiOnYourDataVectorizationSourceType;
type: string;
} & {
authentication: AzureOpenAiOnYourDataApiKeyAuthenticationOptions;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataAuthenticationType } from './on-your-data-authentication-type.js';

/**
* The authentication options for Azure OpenAI On Your Data when using a system-assigned managed identity.
*/
export type AzureOpenAiOnYourDataSystemAssignedManagedIdentityAuthenticationOptions =
{
type: AzureOpenAiOnYourDataAuthenticationType;
type: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import type { AzureOpenAiOnYourDataAuthenticationType } from './on-your-data-authentication-type.js';

/**
* The authentication options for Azure OpenAI On Your Data when using a user-assigned managed identity.
*/
export type AzureOpenAiOnYourDataUserAssignedManagedIdentityAuthenticationOptions =
{
type: AzureOpenAiOnYourDataAuthenticationType;
type: string;
} & {
/**
* The resource ID of the user-assigned managed identity to use for authentication.
Expand Down

0 comments on commit 540bfc5

Please sign in to comment.