diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCognitiveSearchChatExtensionParameters.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCognitiveSearchChatExtensionParameters.java index 0f532077ed25a..893193fbfec7f 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCognitiveSearchChatExtensionParameters.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCognitiveSearchChatExtensionParameters.java @@ -9,7 +9,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Parameters for Azure Cognitive Search when used as an Azure OpenAI chat extension. + * Parameters for Azure Cognitive Search when used as an Azure OpenAI chat extension. The supported authentication + * types are APIKey, SystemAssignedManagedIdentity and UserAssignedManagedIdentity. */ @Fluent public final class AzureCognitiveSearchChatExtensionParameters { diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionConfiguration.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionConfiguration.java index 0fedd35df2787..c6245b1b69f5d 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionConfiguration.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionConfiguration.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * A specific representation of configurable options for Elasticsearch when using it as an Azure OpenAI chat + * A specific representation of configurable options for Azure Cosmos DB when using it as an Azure OpenAI chat * extension. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionParameters.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionParameters.java index c0ffcc8a18f9d..cd2f9cfd15d01 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionParameters.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBChatExtensionParameters.java @@ -10,7 +10,7 @@ /** * Parameters to use when configuring Azure OpenAI On Your Data chat extensions when using Azure Cosmos DB for - * MongoDB vCore. + * MongoDB vCore. The supported authentication type is ConnectionString. */ @Fluent public final class AzureCosmosDBChatExtensionParameters { @@ -93,26 +93,6 @@ public final class AzureCosmosDBChatExtensionParameters { @JsonProperty(value = "embeddingDependency") private OnYourDataVectorizationSource embeddingDependency; - /** - * Creates an instance of AzureCosmosDBChatExtensionParameters class. - * - * @param databaseName the databaseName value to set. - * @param containerName the containerName value to set. - * @param indexName the indexName value to set. - * @param fieldsMapping the fieldsMapping value to set. - */ - @Generated - @JsonCreator - public AzureCosmosDBChatExtensionParameters(@JsonProperty(value = "databaseName") String databaseName, - @JsonProperty(value = "containerName") String containerName, - @JsonProperty(value = "indexName") String indexName, - @JsonProperty(value = "fieldsMapping") AzureCosmosDBFieldMappingOptions fieldsMapping) { - this.databaseName = databaseName; - this.containerName = containerName; - this.indexName = indexName; - this.fieldsMapping = fieldsMapping; - } - /** * Get the authentication property: The authentication method to use when accessing the defined data source. * Each data source type supports a specific set of available authentication methods; please see the documentation @@ -290,15 +270,25 @@ public OnYourDataVectorizationSource getEmbeddingDependency() { } /** - * Set the embeddingDependency property: The embedding dependency for vector search. + * Creates an instance of AzureCosmosDBChatExtensionParameters class. * + * @param databaseName the databaseName value to set. + * @param containerName the containerName value to set. + * @param indexName the indexName value to set. + * @param fieldsMapping the fieldsMapping value to set. * @param embeddingDependency the embeddingDependency value to set. - * @return the AzureCosmosDBChatExtensionParameters object itself. */ @Generated - public AzureCosmosDBChatExtensionParameters - setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency) { + @JsonCreator + public AzureCosmosDBChatExtensionParameters(@JsonProperty(value = "databaseName") String databaseName, + @JsonProperty(value = "containerName") String containerName, + @JsonProperty(value = "indexName") String indexName, + @JsonProperty(value = "fieldsMapping") AzureCosmosDBFieldMappingOptions fieldsMapping, + @JsonProperty(value = "embeddingDependency") OnYourDataVectorizationSource embeddingDependency) { + this.databaseName = databaseName; + this.containerName = containerName; + this.indexName = indexName; + this.fieldsMapping = fieldsMapping; this.embeddingDependency = embeddingDependency; - return this; } } diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBFieldMappingOptions.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBFieldMappingOptions.java index 663f3d1fa73de..bc68c724db86d 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBFieldMappingOptions.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureCosmosDBFieldMappingOptions.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.openai.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -12,7 +12,7 @@ /** * Optional settings to control how fields are processed when using a configured Azure Cosmos DB resource. */ -@Immutable +@Fluent public final class AzureCosmosDBFieldMappingOptions { /* @@ -22,24 +22,160 @@ public final class AzureCosmosDBFieldMappingOptions { @JsonProperty(value = "vectorFields") private List vectorFields; + /** + * Get the vectorFields property: The names of fields that represent vector data. + * + * @return the vectorFields value. + */ + @Generated + public List getVectorFields() { + return this.vectorFields; + } + + /* + * The name of the index field to use as a title. + */ + @Generated + @JsonProperty(value = "titleField") + private String titleField; + + /* + * The name of the index field to use as a URL. + */ + @Generated + @JsonProperty(value = "urlField") + private String urlField; + + /* + * The name of the index field to use as a filepath. + */ + @Generated + @JsonProperty(value = "filepathField") + private String filepathField; + + /* + * The names of index fields that should be treated as content. + */ + @Generated + @JsonProperty(value = "contentFields") + private List contentFields; + + /* + * The separator pattern that content fields should use. + */ + @Generated + @JsonProperty(value = "contentFieldsSeparator") + private String contentFieldsSeparator; + /** * Creates an instance of AzureCosmosDBFieldMappingOptions class. * + * @param contentFields the contentFields value to set. * @param vectorFields the vectorFields value to set. */ @Generated @JsonCreator - public AzureCosmosDBFieldMappingOptions(@JsonProperty(value = "vectorFields") List vectorFields) { + public AzureCosmosDBFieldMappingOptions(@JsonProperty(value = "contentFields") List contentFields, + @JsonProperty(value = "vectorFields") List vectorFields) { + this.contentFields = contentFields; this.vectorFields = vectorFields; } /** - * Get the vectorFields property: The names of fields that represent vector data. + * Get the titleField property: The name of the index field to use as a title. * - * @return the vectorFields value. + * @return the titleField value. */ @Generated - public List getVectorFields() { - return this.vectorFields; + public String getTitleField() { + return this.titleField; + } + + /** + * Set the titleField property: The name of the index field to use as a title. + * + * @param titleField the titleField value to set. + * @return the AzureCosmosDBFieldMappingOptions object itself. + */ + @Generated + public AzureCosmosDBFieldMappingOptions setTitleField(String titleField) { + this.titleField = titleField; + return this; + } + + /** + * Get the urlField property: The name of the index field to use as a URL. + * + * @return the urlField value. + */ + @Generated + public String getUrlField() { + return this.urlField; + } + + /** + * Set the urlField property: The name of the index field to use as a URL. + * + * @param urlField the urlField value to set. + * @return the AzureCosmosDBFieldMappingOptions object itself. + */ + @Generated + public AzureCosmosDBFieldMappingOptions setUrlField(String urlField) { + this.urlField = urlField; + return this; + } + + /** + * Get the filepathField property: The name of the index field to use as a filepath. + * + * @return the filepathField value. + */ + @Generated + public String getFilepathField() { + return this.filepathField; + } + + /** + * Set the filepathField property: The name of the index field to use as a filepath. + * + * @param filepathField the filepathField value to set. + * @return the AzureCosmosDBFieldMappingOptions object itself. + */ + @Generated + public AzureCosmosDBFieldMappingOptions setFilepathField(String filepathField) { + this.filepathField = filepathField; + return this; + } + + /** + * Get the contentFields property: The names of index fields that should be treated as content. + * + * @return the contentFields value. + */ + @Generated + public List getContentFields() { + return this.contentFields; + } + + /** + * Get the contentFieldsSeparator property: The separator pattern that content fields should use. + * + * @return the contentFieldsSeparator value. + */ + @Generated + public String getContentFieldsSeparator() { + return this.contentFieldsSeparator; + } + + /** + * Set the contentFieldsSeparator property: The separator pattern that content fields should use. + * + * @param contentFieldsSeparator the contentFieldsSeparator value to set. + * @return the AzureCosmosDBFieldMappingOptions object itself. + */ + @Generated + public AzureCosmosDBFieldMappingOptions setContentFieldsSeparator(String contentFieldsSeparator) { + this.contentFieldsSeparator = contentFieldsSeparator; + return this; } } diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureMachineLearningIndexChatExtensionParameters.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureMachineLearningIndexChatExtensionParameters.java index f96c0edb284e6..a527715c3edf7 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureMachineLearningIndexChatExtensionParameters.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/AzureMachineLearningIndexChatExtensionParameters.java @@ -9,7 +9,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Parameters for the Azure Machine Learning vector index chat extension. + * Parameters for the Azure Machine Learning vector index chat extension. The supported authentication types are + * AccessToken, SystemAssignedManagedIdentity and UserAssignedManagedIdentity. */ @Fluent public final class AzureMachineLearningIndexChatExtensionParameters { diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsFunctionToolSelection.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsFunctionToolSelection.java new file mode 100644 index 0000000000000..b032fe70b7597 --- /dev/null +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsFunctionToolSelection.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.openai.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A tool selection of a specific, named function tool that will limit chat completions to using the named function. + */ +@Immutable +public final class ChatCompletionsFunctionToolSelection { + /* + * The name of the function that should be called. + */ + @Generated + @JsonProperty(value = "name") + private String name; + + /** + * Creates an instance of ChatCompletionsFunctionToolSelection class. + * + * @param name the name value to set. + */ + @Generated + @JsonCreator + public ChatCompletionsFunctionToolSelection(@JsonProperty(value = "name") String name) { + this.name = name; + } + + /** + * Get the name property: The name of the function that should be called. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } +} diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsNamedFunctionToolSelection.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsNamedFunctionToolSelection.java index c7d6487e9c88a..01bc641aebd3e 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsNamedFunctionToolSelection.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ChatCompletionsNamedFunctionToolSelection.java @@ -19,30 +19,31 @@ public final class ChatCompletionsNamedFunctionToolSelection extends ChatCompletionsNamedToolSelection { /* - * The name of the function that should be called. + * The function that should be called. */ @Generated - @JsonProperty(value = "name") - private String name; + @JsonProperty(value = "function") + private ChatCompletionsFunctionToolSelection function; /** - * Get the name property: The name of the function that should be called. + * Creates an instance of ChatCompletionsNamedFunctionToolSelection class. * - * @return the name value. + * @param function the function value to set. */ @Generated - public String getName() { - return this.name; + @JsonCreator + public ChatCompletionsNamedFunctionToolSelection( + @JsonProperty(value = "function") ChatCompletionsFunctionToolSelection function) { + this.function = function; } /** - * Creates an instance of ChatCompletionsNamedFunctionToolSelection class. + * Get the function property: The function that should be called. * - * @param name the name value to set. + * @return the function value. */ @Generated - @JsonCreator - public ChatCompletionsNamedFunctionToolSelection(@JsonProperty(value = "name") String name) { - this.name = name; + public ChatCompletionsFunctionToolSelection getFunction() { + return this.function; } } diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ElasticsearchChatExtensionParameters.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ElasticsearchChatExtensionParameters.java index 9318ab86f21cc..749e0f27fa699 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ElasticsearchChatExtensionParameters.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/ElasticsearchChatExtensionParameters.java @@ -9,7 +9,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Parameters to use when configuring Elasticsearch® as an Azure OpenAI chat extension. + * Parameters to use when configuring Elasticsearch® as an Azure OpenAI chat extension. The supported authentication + * types are KeyAndKeyId and EncodedAPIKey. */ @Fluent public final class ElasticsearchChatExtensionParameters { diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAccessTokenAuthenticationOptions.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAccessTokenAuthenticationOptions.java new file mode 100644 index 0000000000000..1cbaa30a4505f --- /dev/null +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAccessTokenAuthenticationOptions.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.openai.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The authentication options for Azure OpenAI On Your Data when using access token. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AccessToken") +@Immutable +public final class OnYourDataAccessTokenAuthenticationOptions extends OnYourDataAuthenticationOptions { + /* + * The access token to use for authentication. + */ + @Generated + @JsonProperty(value = "accessToken") + private String accessToken; + + /** + * Creates an instance of OnYourDataAccessTokenAuthenticationOptions class. + * + * @param accessToken the accessToken value to set. + */ + @Generated + @JsonCreator + public OnYourDataAccessTokenAuthenticationOptions(@JsonProperty(value = "accessToken") String accessToken) { + this.accessToken = accessToken; + } + + /** + * Get the accessToken property: The access token to use for authentication. + * + * @return the accessToken value. + */ + @Generated + public String getAccessToken() { + return this.accessToken; + } +} diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAuthenticationOptions.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAuthenticationOptions.java index 9f63234709dd3..f827c1af57352 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAuthenticationOptions.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataAuthenticationOptions.java @@ -22,6 +22,8 @@ @JsonSubTypes.Type(name = "APIKey", value = OnYourDataApiKeyAuthenticationOptions.class), @JsonSubTypes.Type(name = "ConnectionString", value = OnYourDataConnectionStringAuthenticationOptions.class), @JsonSubTypes.Type(name = "KeyAndKeyId", value = OnYourDataKeyAndKeyIdAuthenticationOptions.class), + @JsonSubTypes.Type(name = "EncodedAPIKey", value = OnYourDataEncodedApiKeyAuthenticationOptions.class), + @JsonSubTypes.Type(name = "AccessToken", value = OnYourDataAccessTokenAuthenticationOptions.class), @JsonSubTypes.Type( name = "SystemAssignedManagedIdentity", value = OnYourDataSystemAssignedManagedIdentityAuthenticationOptions.class), diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataEncodedApiKeyAuthenticationOptions.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataEncodedApiKeyAuthenticationOptions.java new file mode 100644 index 0000000000000..fa6c7d5a2a83f --- /dev/null +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/OnYourDataEncodedApiKeyAuthenticationOptions.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.openai.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The authentication options for Azure OpenAI On Your Data when using an Elasticsearch encoded API key. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EncodedAPIKey") +@Immutable +public final class OnYourDataEncodedApiKeyAuthenticationOptions extends OnYourDataAuthenticationOptions { + /* + * The encoded API key to use for authentication. + */ + @Generated + @JsonProperty(value = "encodedApiKey") + private String encodedApiKey; + + /** + * Creates an instance of OnYourDataEncodedApiKeyAuthenticationOptions class. + * + * @param encodedApiKey the encodedApiKey value to set. + */ + @Generated + @JsonCreator + public OnYourDataEncodedApiKeyAuthenticationOptions(@JsonProperty(value = "encodedApiKey") String encodedApiKey) { + this.encodedApiKey = encodedApiKey; + } + + /** + * Get the encodedApiKey property: The encoded API key to use for authentication. + * + * @return the encodedApiKey value. + */ + @Generated + public String getEncodedApiKey() { + return this.encodedApiKey; + } +} diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionConfiguration.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionConfiguration.java index e8b1c844d3386..76286d986a5b9 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionConfiguration.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionConfiguration.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * A specific representation of configurable options for Elasticsearch when using it as an Azure OpenAI chat + * A specific representation of configurable options for Pinecone when using it as an Azure OpenAI chat * extension. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionParameters.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionParameters.java index 9e437bffc7faf..ad3f91402c810 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionParameters.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeChatExtensionParameters.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Parameters for configuring Azure OpenAI Pinecone chat extensions. + * Parameters for configuring Azure OpenAI Pinecone chat extensions. The supported authentication type is APIKey. */ @Fluent public final class PineconeChatExtensionParameters { @@ -85,23 +85,6 @@ public final class PineconeChatExtensionParameters { @JsonProperty(value = "embeddingDependency") private OnYourDataVectorizationSource embeddingDependency; - /** - * Creates an instance of PineconeChatExtensionParameters class. - * - * @param environment the environment value to set. - * @param indexName the indexName value to set. - * @param fieldsMapping the fieldsMapping value to set. - */ - @Generated - @JsonCreator - public PineconeChatExtensionParameters(@JsonProperty(value = "environment") String environment, - @JsonProperty(value = "indexName") String indexName, - @JsonProperty(value = "fieldsMapping") PineconeFieldMappingOptions fieldsMapping) { - this.environment = environment; - this.indexName = indexName; - this.fieldsMapping = fieldsMapping; - } - /** * Get the authentication property: The authentication method to use when accessing the defined data source. * Each data source type supports a specific set of available authentication methods; please see the documentation @@ -269,14 +252,22 @@ public OnYourDataVectorizationSource getEmbeddingDependency() { } /** - * Set the embeddingDependency property: The embedding dependency for vector search. + * Creates an instance of PineconeChatExtensionParameters class. * + * @param environment the environment value to set. + * @param indexName the indexName value to set. + * @param fieldsMapping the fieldsMapping value to set. * @param embeddingDependency the embeddingDependency value to set. - * @return the PineconeChatExtensionParameters object itself. */ @Generated - public PineconeChatExtensionParameters setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency) { + @JsonCreator + public PineconeChatExtensionParameters(@JsonProperty(value = "environment") String environment, + @JsonProperty(value = "indexName") String indexName, + @JsonProperty(value = "fieldsMapping") PineconeFieldMappingOptions fieldsMapping, + @JsonProperty(value = "embeddingDependency") OnYourDataVectorizationSource embeddingDependency) { + this.environment = environment; + this.indexName = indexName; + this.fieldsMapping = fieldsMapping; this.embeddingDependency = embeddingDependency; - return this; } } diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeFieldMappingOptions.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeFieldMappingOptions.java index 8beff9ff9d986..b1b358809132d 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeFieldMappingOptions.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/PineconeFieldMappingOptions.java @@ -5,6 +5,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -49,27 +50,6 @@ public final class PineconeFieldMappingOptions { @JsonProperty(value = "contentFieldsSeparator") private String contentFieldsSeparator; - /* - * The names of fields that represent vector data. - */ - @Generated - @JsonProperty(value = "vectorFields") - private List vectorFields; - - /* - * The names of fields that represent image vector data. - */ - @Generated - @JsonProperty(value = "imageVectorFields") - private List imageVectorFields; - - /** - * Creates an instance of PineconeFieldMappingOptions class. - */ - @Generated - public PineconeFieldMappingOptions() { - } - /** * Get the titleField property: The name of the index field to use as a title. * @@ -146,18 +126,6 @@ public List getContentFields() { return this.contentFields; } - /** - * Set the contentFields property: The names of index fields that should be treated as content. - * - * @param contentFields the contentFields value to set. - * @return the PineconeFieldMappingOptions object itself. - */ - @Generated - public PineconeFieldMappingOptions setContentFields(List contentFields) { - this.contentFields = contentFields; - return this; - } - /** * Get the contentFieldsSeparator property: The separator pattern that content fields should use. * @@ -181,46 +149,13 @@ public PineconeFieldMappingOptions setContentFieldsSeparator(String contentField } /** - * Get the vectorFields property: The names of fields that represent vector data. - * - * @return the vectorFields value. - */ - @Generated - public List getVectorFields() { - return this.vectorFields; - } - - /** - * Set the vectorFields property: The names of fields that represent vector data. - * - * @param vectorFields the vectorFields value to set. - * @return the PineconeFieldMappingOptions object itself. - */ - @Generated - public PineconeFieldMappingOptions setVectorFields(List vectorFields) { - this.vectorFields = vectorFields; - return this; - } - - /** - * Get the imageVectorFields property: The names of fields that represent image vector data. - * - * @return the imageVectorFields value. - */ - @Generated - public List getImageVectorFields() { - return this.imageVectorFields; - } - - /** - * Set the imageVectorFields property: The names of fields that represent image vector data. + * Creates an instance of PineconeFieldMappingOptions class. * - * @param imageVectorFields the imageVectorFields value to set. - * @return the PineconeFieldMappingOptions object itself. + * @param contentFields the contentFields value to set. */ @Generated - public PineconeFieldMappingOptions setImageVectorFields(List imageVectorFields) { - this.imageVectorFields = imageVectorFields; - return this; + @JsonCreator + public PineconeFieldMappingOptions(@JsonProperty(value = "contentFields") List contentFields) { + this.contentFields = contentFields; } } diff --git a/sdk/openai/azure-ai-openai/tsp-location.yaml b/sdk/openai/azure-ai-openai/tsp-location.yaml index 43ab2b14656e7..46cf886f2172b 100644 --- a/sdk/openai/azure-ai-openai/tsp-location.yaml +++ b/sdk/openai/azure-ai-openai/tsp-location.yaml @@ -1,5 +1,5 @@ -directory: specification/cognitiveservices/OpenAI.Inference -additionalDirectories: - - specification/cognitiveservices/OpenAI.Authoring -commit: 2b8553deacb52ccd703b976d24348162be6c1d97 repo: Azure/azure-rest-api-specs +commit: 2aa9b1d4956f57f1603455fa278c2495f9977938 +additionalDirectories: [] +directory: specification/cognitiveservices/OpenAI.Inference +