From 540bfc53f2cba610e88d093a8f5bc5d5e76ee6b0 Mon Sep 17 00:00:00 2001 From: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:44:02 +0200 Subject: [PATCH] re-generate after discrimintaor fix (#199) --- .../inference/schema/azure-chat-extension-configuration.ts | 6 +++--- .../client/inference/schema/azure-chat-extension-type.ts | 6 +++--- .../schema/azure-chat-extensions-message-context.ts | 6 +++--- .../schema/azure-cosmos-db-chat-extension-configuration.ts | 3 +-- .../schema/azure-search-chat-extension-configuration.ts | 3 +-- .../schema/chat-completion-request-message-assistant.ts | 3 +-- .../chat-completion-request-message-content-part-image.ts | 3 +-- .../chat-completion-request-message-content-part-text.ts | 4 ++-- .../schema/chat-completion-request-message-function.ts | 4 ++-- .../schema/chat-completion-request-message-system.ts | 4 ++-- .../schema/chat-completion-request-message-tool.ts | 4 ++-- .../schema/chat-completion-request-message-user.ts | 3 +-- .../inference/schema/create-chat-completion-request.ts | 4 ++-- .../schema/on-your-data-api-key-authentication-options.ts | 4 ++-- ...on-your-data-connection-string-authentication-options.ts | 4 ++-- .../on-your-data-deployment-name-vectorization-source.ts | 4 ++-- .../schema/on-your-data-endpoint-vectorization-source.ts | 3 +-- ...stem-assigned-managed-identity-authentication-options.ts | 4 ++-- ...user-assigned-managed-identity-authentication-options.ts | 4 ++-- 19 files changed, 35 insertions(+), 41 deletions(-) diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-configuration.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-configuration.ts index 1c12ef81..5aada1e2 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-configuration.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-configuration.ts @@ -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 = | ({ diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-type.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-type.ts index 296620ec..0158d100 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-type.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extension-type.ts @@ -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' diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extensions-message-context.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extensions-message-context.ts index bffbf677..876f2257 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extensions-message-context.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-chat-extensions-message-context.ts @@ -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 = { /** diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-cosmos-db-chat-extension-configuration.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-cosmos-db-chat-extension-configuration.ts index 26220030..947682e5 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-cosmos-db-chat-extension-configuration.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-cosmos-db-chat-extension-configuration.ts @@ -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; diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-search-chat-extension-configuration.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-search-chat-extension-configuration.ts index fde68188..701ced2a 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/azure-search-chat-extension-configuration.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/azure-search-chat-extension-configuration.ts @@ -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; diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-assistant.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-assistant.ts index f02207d2..8f971e8b 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-assistant.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-assistant.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.ts index 882f0559..feb5fec4 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.ts index d1c10ec1..f392e31f 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-function.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-function.ts index e82290e9..f6b5bdbe 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-function.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-function.ts @@ -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`. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-system.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-system.ts index eb2b2023..1847b81e 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-system.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-system.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-tool.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-tool.ts index d78e8746..c8ddd387 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-tool.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-tool.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-user.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-user.ts index 6b7960ff..e320aed8 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-user.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/chat-completion-request-message-user.ts @@ -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; diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/create-chat-completion-request.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/create-chat-completion-request.ts index ce038b30..2261c6d6 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/create-chat-completion-request.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/create-chat-completion-request.ts @@ -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[]; /** diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.ts index 9f1b7032..2e240202 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.ts index 45214ba3..0e0eb2a7 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.ts index 55bd730b..3d5449f6 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.ts @@ -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. diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-endpoint-vectorization-source.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-endpoint-vectorization-source.ts index f8246dad..35370201 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-endpoint-vectorization-source.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-endpoint-vectorization-source.ts @@ -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; /** diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.ts index ca802b80..48a0c2b5 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.ts @@ -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; }; diff --git a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.ts b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.ts index d6badf1d..d9c7a225 100644 --- a/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.ts +++ b/packages/foundation-models/src/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.ts @@ -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.