CosmosChatDataSource.IPersistableModel<CosmosChatDataSource>.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the provided BinaryData into a model.
Azure.AI.OpenAI.Chat.CosmosChatDataSource IPersistableModel<CosmosChatDataSource>.Create(BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options);
abstract member System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.CosmosChatDataSource>.Create : BinaryData * System.ClientModel.Primitives.ModelReaderWriterOptions -> Azure.AI.OpenAI.Chat.CosmosChatDataSource
override this.System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.CosmosChatDataSource>.Create : BinaryData * System.ClientModel.Primitives.ModelReaderWriterOptions -> Azure.AI.OpenAI.Chat.CosmosChatDataSource
Function Create (data As BinaryData, options As ModelReaderWriterOptions) As CosmosChatDataSource Implements IPersistableModel(Of CosmosChatDataSource).Create
Parameters
- data
- BinaryData
The data to parse.
- options
- ModelReaderWriterOptions
The client options for reading and writing models.
Returns
A T representation of the data.
Implements
Exceptions
If the model does not support the requested Format.