-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathmodels.ts
604 lines (565 loc) · 26.7 KB
/
models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** The type of included properties of the output context. */
export type OnYourDataContextProperty = "citations" | "intent" | "all_retrieved_documents";
/**
* A specific representation of configurable options for Azure Search when using it as an Azure OpenAI chat
* extension.
*/
export interface AzureSearchChatExtensionConfiguration
extends AzureChatExtensionConfigurationParent {
/**
* The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its
* default value for Azure Cognitive Search.
*/
type: "azure_search";
/** The parameters to use when configuring Azure Search. */
parameters: AzureSearchChatExtensionParameters;
}
/** Parameters for Azure Cognitive Search when used as an Azure OpenAI chat extension. The supported authentication types are APIKey, SystemAssignedManagedIdentity and UserAssignedManagedIdentity. */
export interface AzureSearchChatExtensionParameters {
/**
* 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 of
* the data source for supported mechanisms.
* If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential)
* authentication.
*/
authentication:
| OnYourDataAuthenticationOptionsParent
| OnYourDataApiKeyAuthenticationOptions
| OnYourDataSystemAssignedManagedIdentityAuthenticationOptions
| OnYourDataUserAssignedManagedIdentityAuthenticationOptions
| OnYourDataAccessTokenAuthenticationOptions;
/** The configured top number of documents to feature for the configured query. */
top_n_documents?: number;
/** Whether queries should be restricted to use of indexed data. */
in_scope?: boolean;
/** The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. */
strictness?: number;
/**
* The max number of rewritten queries should be send to search provider for one user message. If not specified,
* the system will decide the number of queries to send.
*/
max_search_queries?: number;
/**
* If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail.
* If not specified, or specified as false, the request will fail if any search query fails.
*/
allow_partial_result?: boolean;
/** The included properties of the output context. If not specified, the default value is `citations` and `intent`. */
include_contexts?: OnYourDataContextProperty[];
/** The absolute endpoint path for the Azure Cognitive Search resource to use. */
endpoint: string;
/** The name of the index to use as available in the referenced Azure Cognitive Search resource. */
index_name: string;
/** Customized field mapping behavior to use when interacting with the search index. */
fields_mapping?: AzureSearchIndexFieldMappingOptions;
/**
* The query type to use with Azure Cognitive Search.
*
* Possible values: "simple", "semantic", "vector", "vector_simple_hybrid", "vector_semantic_hybrid"
*/
query_type?: string;
/** The additional semantic configuration for the query. */
semantic_configuration?: string;
/** Search filter. */
filter?: string;
/** The embedding dependency for vector search. */
embedding_dependency?: OnYourDataVectorizationSource;
}
/** Optional settings to control how fields are processed when using a configured Azure Search resource. */
export interface AzureSearchIndexFieldMappingOptions {
/** The name of the index field to use as a title. */
title_field?: string;
/** The name of the index field to use as a URL. */
url_field?: string;
/** The name of the index field to use as a filepath. */
filepath_field?: string;
/** The names of index fields that should be treated as content. */
content_fields?: string[];
/** The separator pattern that content fields should use. */
content_fields_separator?: string;
/** The names of fields that represent vector data. */
vector_fields?: string[];
/** The names of fields that represent image vector data. */
image_vector_fields?: string[];
}
/**
* A specific representation of configurable options for Elasticsearch when using it as an Azure OpenAI chat
* extension.
*/
export interface ElasticsearchChatExtensionConfiguration
extends AzureChatExtensionConfigurationParent {
/**
* The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its
* default value for Elasticsearch®.
*/
type: "elasticsearch";
/** The parameters to use when configuring Elasticsearch®. */
parameters: ElasticsearchChatExtensionParameters;
}
/** Parameters to use when configuring Elasticsearch® as an Azure OpenAI chat extension. The supported authentication types are KeyAndKeyId and EncodedAPIKey. */
export interface ElasticsearchChatExtensionParameters {
/**
* 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 of
* the data source for supported mechanisms.
* If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential)
* authentication.
*/
authentication:
| OnYourDataAuthenticationOptionsParent
| OnYourDataKeyAndKeyIdAuthenticationOptions
| OnYourDataEncodedApiKeyAuthenticationOptions;
/** The configured top number of documents to feature for the configured query. */
top_n_documents?: number;
/** Whether queries should be restricted to use of indexed data. */
in_scope?: boolean;
/** The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. */
strictness?: number;
/**
* The max number of rewritten queries should be send to search provider for one user message. If not specified,
* the system will decide the number of queries to send.
*/
max_search_queries?: number;
/**
* If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail.
* If not specified, or specified as false, the request will fail if any search query fails.
*/
allow_partial_result?: boolean;
/** The included properties of the output context. If not specified, the default value is `citations` and `intent`. */
include_contexts?: OnYourDataContextProperty[];
/** The endpoint of Elasticsearch®. */
endpoint: string;
/** The index name of Elasticsearch®. */
index_name: string;
/** The index field mapping options of Elasticsearch®. */
fields_mapping?: ElasticsearchIndexFieldMappingOptions;
/**
* The query type of Elasticsearch®.
*
* Possible values: "simple", "vector"
*/
query_type?: string;
/** The embedding dependency for vector search. */
embedding_dependency?: OnYourDataVectorizationSource;
}
/** Optional settings to control how fields are processed when using a configured Elasticsearch® resource. */
export interface ElasticsearchIndexFieldMappingOptions {
/** The name of the index field to use as a title. */
title_field?: string;
/** The name of the index field to use as a URL. */
url_field?: string;
/** The name of the index field to use as a filepath. */
filepath_field?: string;
/** The names of index fields that should be treated as content. */
content_fields?: string[];
/** The separator pattern that content fields should use. */
content_fields_separator?: string;
/** The names of fields that represent vector data. */
vector_fields?: string[];
}
/** The authentication options for Azure OpenAI On Your Data when using access token. */
export interface OnYourDataAccessTokenAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of access token. */
type: "access_token";
/** The access token to use for authentication. */
access_token: string;
}
/**
* A specific representation of configurable options for Azure Cosmos DB when using it as an Azure OpenAI chat
* extension.
*/
export interface AzureCosmosDBChatExtensionConfiguration
extends AzureChatExtensionConfigurationParent {
/**
* The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its
* default value for Azure Cosmos DB.
*/
type: "azure_cosmos_db";
/** The parameters to use when configuring Azure OpenAI CosmosDB chat extensions. */
parameters: AzureCosmosDBChatExtensionParameters;
}
/**
* Parameters to use when configuring Azure OpenAI On Your Data chat extensions when using Azure Cosmos DB for
* MongoDB vCore. The supported authentication type is ConnectionString.
*/
export interface AzureCosmosDBChatExtensionParameters {
/**
* 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 of
* the data source for supported mechanisms.
* If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential)
* authentication.
*/
authentication:
| OnYourDataAuthenticationOptionsParent
| OnYourDataConnectionStringAuthenticationOptions;
/** The configured top number of documents to feature for the configured query. */
top_n_documents?: number;
/** Whether queries should be restricted to use of indexed data. */
in_scope?: boolean;
/** The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. */
strictness?: number;
/**
* The max number of rewritten queries should be send to search provider for one user message. If not specified,
* the system will decide the number of queries to send.
*/
max_search_queries?: number;
/**
* If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail.
* If not specified, or specified as false, the request will fail if any search query fails.
*/
allow_partial_result?: boolean;
/** The included properties of the output context. If not specified, the default value is `citations` and `intent`. */
include_contexts?: OnYourDataContextProperty[];
/** The MongoDB vCore database name to use with Azure Cosmos DB. */
database_name: string;
/** The name of the Azure Cosmos DB resource container. */
container_name: string;
/** The MongoDB vCore index name to use with Azure Cosmos DB. */
index_name: string;
/** Customized field mapping behavior to use when interacting with the search index. */
fields_mapping: AzureCosmosDBFieldMappingOptions;
/** The embedding dependency for vector search. */
embedding_dependency: OnYourDataVectorizationSource;
}
/** Optional settings to control how fields are processed when using a configured Azure Cosmos DB resource. */
export interface AzureCosmosDBFieldMappingOptions {
/** The name of the index field to use as a title. */
title_field?: string;
/** The name of the index field to use as a URL. */
url_field?: string;
/** The name of the index field to use as a filepath. */
filepath_field?: string;
/** The names of index fields that should be treated as content. */
content_fields: string[];
/** The separator pattern that content fields should use. */
content_fields_separator?: string;
/** The names of fields that represent vector data. */
vector_fields: string[];
}
/** The authentication options for Azure OpenAI On Your Data when using an API key. */
export interface OnYourDataApiKeyAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of API key. */
type: "api_key";
/** The API key to use for authentication. */
key: string;
}
/** The authentication options for Azure OpenAI On Your Data. */
export interface OnYourDataAuthenticationOptionsParent {
/** The authentication type. */
type: string;
}
/** The authentication options for Azure OpenAI On Your Data when using a connection string. */
export interface OnYourDataConnectionStringAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of connection string. */
type: "connection_string";
/** The connection string to use for authentication. */
connection_string: string;
}
/**
* 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 interface OnYourDataDeploymentNameVectorizationSource
extends OnYourDataVectorizationSourceParent {
/** The type of vectorization source to use. Always 'deployment_name' for this type. */
type: "deployment_name";
/** The embedding model deployment name within the same Azure OpenAI resource. This enables you to use vector search without Azure OpenAI api-key and without Azure OpenAI public network access. */
deployment_name: string;
/** The number of dimensions the embeddings should have. Only supported in `text-embedding-3` and later models. */
dimensions?: number;
}
/** The authentication options for Azure OpenAI On Your Data when using an Elasticsearch encoded API key. */
export interface OnYourDataEncodedApiKeyAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of Elasticsearch encoded API Key. */
type: "encoded_api_key";
/** The encoded API key to use for authentication. */
encoded_api_key: string;
}
/**
* The authentication options for Azure OpenAI On Your Data when using a username and password.
*/
export interface OnYourDataUsernameAndPasswordAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The discriminator type for username and password. */
type: "username_and_password";
/** The username. */
username: string;
/** The password. */
password: string;
}
/**
* 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 interface OnYourDataEndpointVectorizationSource extends OnYourDataVectorizationSourceParent {
/** The type of vectorization source to use. Always 'endpoint' for this type. */
type: "endpoint";
/** Specifies the resource endpoint URL from which embeddings should be retrieved. It should be in the format of https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings. The api-version query parameter is not allowed. */
endpoint: string;
/** Specifies the authentication options to use when retrieving embeddings from the specified endpoint. */
authentication:
| OnYourDataAuthenticationOptionsParent
| OnYourDataVectorSearchApiKeyAuthenticationOptions
| OnYourDataVectorSearchAccessTokenAuthenticationOptions;
}
/** The authentication options for Azure OpenAI On Your Data when using an Elasticsearch key and key ID pair. */
export interface OnYourDataKeyAndKeyIdAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of Elasticsearch key and key ID pair. */
type: "key_and_key_id";
/** The key to use for authentication. */
key: string;
/** The key ID to use for authentication. */
key_id: string;
}
/**
* The details of a a vectorization source, used by Azure OpenAI On Your Data when applying vector search, that is based
* on a search service model ID. Currently only supported by Elasticsearch®.
*/
export interface OnYourDataModelIdVectorizationSource extends OnYourDataVectorizationSourceParent {
/** The type of vectorization source to use. Always 'ModelId' for this type. */
type: "model_id";
/** The embedding model ID build inside the search service. Currently only supported by Elasticsearch®. */
model_id: string;
}
/** The authentication options for Azure OpenAI On Your Data when using a system-assigned managed identity. */
export interface OnYourDataSystemAssignedManagedIdentityAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of system-assigned managed identity. */
type: "system_assigned_managed_identity";
}
/** The authentication options for Azure OpenAI On Your Data when using a user-assigned managed identity. */
export interface OnYourDataUserAssignedManagedIdentityAuthenticationOptions
extends OnYourDataAuthenticationOptionsParent {
/** The authentication type of user-assigned managed identity. */
type: "user_assigned_managed_identity";
/** The resource ID of the user-assigned managed identity to use for authentication. */
managed_identity_resource_id: string;
}
/** An abstract representation of a vectorization source for Azure OpenAI On Your Data with vector search. */
export interface OnYourDataVectorizationSourceParent {
/** The authentication type. */
type: string;
}
/**
* 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 interface AzureChatExtensionConfigurationParent {
/** The type label. */
type: string;
}
/**
* A specific representation of configurable options for Pinecone when using it as an Azure OpenAI chat
* extension.
*/
export interface PineconeChatExtensionConfiguration extends AzureChatExtensionConfigurationParent {
/**
* The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its
* default value for Pinecone.
*/
type: "pinecone";
/** The parameters to use when configuring Azure OpenAI chat extensions. */
parameters: PineconeChatExtensionParameters;
}
/** Parameters for configuring Azure OpenAI Pinecone chat extensions. The supported authentication type is APIKey. */
export interface PineconeChatExtensionParameters {
/**
* 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 of
* the data source for supported mechanisms.
* If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential)
* authentication.
*/
authentication: OnYourDataAuthenticationOptionsParent | OnYourDataApiKeyAuthenticationOptions;
/** The configured top number of documents to feature for the configured query. */
top_n_documents?: number;
/** Whether queries should be restricted to use of indexed data. */
in_scope?: boolean;
/** The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. */
strictness?: number;
/**
* The max number of rewritten queries should be send to search provider for one user message. If not specified,
* the system will decide the number of queries to send.
*/
max_search_queries?: number;
/**
* If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail.
* If not specified, or specified as false, the request will fail if any search query fails.
*/
allow_partial_result?: boolean;
/** The included properties of the output context. If not specified, the default value is `citations` and `intent`. */
include_contexts?: OnYourDataContextProperty[];
/** The environment name of Pinecone. */
environment: string;
/** The name of the Pinecone database index. */
index_name: string;
/** Customized field mapping behavior to use when interacting with the search index. */
fields_mapping: PineconeFieldMappingOptions;
/** The embedding dependency for vector search. */
embedding_dependency: OnYourDataVectorizationSource;
}
/** Optional settings to control how fields are processed when using a configured Pinecone resource. */
export interface PineconeFieldMappingOptions {
/** The name of the index field to use as a title. */
title_field?: string;
/** The name of the index field to use as a URL. */
url_field?: string;
/** The name of the index field to use as a filepath. */
filepath_field?: string;
/** The names of index fields that should be treated as content. */
content_fields: string[];
/** The separator pattern that content fields should use. */
content_fields_separator?: string;
}
/**
* A specific representation of configurable options for Mongo DB when using it as an Azure OpenAI chat
* extension.
*/
export interface MongoDBChatExtensionConfiguration extends AzureChatExtensionConfigurationParent {
/**
* The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its
* default value for Azure Cosmos DB.
*/
type: "mongo_db";
/** The parameters to use when configuring Azure OpenAI CosmosDB chat extensions. */
parameters: MongoDBChatExtensionParameters;
}
/**
* Parameters to use when configuring Azure OpenAI On Your Data chat extensions when using Mongo DB.
* The supported authentication type is ConnectionString.
*/
export interface MongoDBChatExtensionParameters {
/**
* 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 of
* the data source for supported mechanisms.
* If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential)
* authentication.
*/
authentication:
| OnYourDataAuthenticationOptionsParent
| OnYourDataUsernameAndPasswordAuthenticationOptions;
/** The configured top number of documents to feature for the configured query. */
top_n_documents?: number;
/** Whether queries should be restricted to use of indexed data. */
in_scope?: boolean;
/** The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. */
strictness?: number;
/**
* The max number of rewritten queries should be send to search provider for one user message. If not specified,
* the system will decide the number of queries to send.
*/
max_search_queries?: number;
/**
* If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail.
* If not specified, or specified as false, the request will fail if any search query fails.
*/
allow_partial_result?: boolean;
/** The included properties of the output context. If not specified, the default value is `citations` and `intent`. */
include_contexts?: OnYourDataContextProperty[];
/** The endpoint name for MongoDB. */
endpoint: string;
/** The collection name for MongoDB. */
collection_name: string;
/** The database name for MongoDB. */
database_name: string;
/** The app name for MongoDB. */
app_name: string;
/** The name of the MongoDB index. */
index_name: string;
/** Customized field mapping behavior to use when interacting with the search index. */
fields_mapping: MongoDBFieldMappingOptions;
/** The embedding dependency for vector search. */
embedding_dependency:
| OnYourDataEndpointVectorizationSource
| OnYourDataDeploymentNameVectorizationSource;
}
/** Optional settings to control how fields are processed when using a configured MongoDB resource. */
export interface MongoDBFieldMappingOptions {
/** The name of the index field to use as a title. */
title_field?: string;
/** The name of the index field to use as a URL. */
url_field?: string;
/** The name of the index field to use as a filepath. */
filepath_field?: string;
/** The names of index fields that should be treated as content. */
content_fields: string[];
/** The separator pattern that content fields should use. */
content_fields_separator?: string;
/** The names of fields that represent vector data. */
vector_fields: string[];
}
/**
* The authentication options for Azure OpenAI On Your Data vector search.
*/
export interface OnYourDataVectorSearchAuthenticationOptions {
/** The type of authentication to use. */
type: string;
}
/**
* The authentication options for Azure OpenAI On Your Data vector search when using an API key.
*/
export interface OnYourDataVectorSearchApiKeyAuthenticationOptions
extends OnYourDataVectorSearchAuthenticationOptions {
/** The authentication type of API key. */
type: "api_key";
/** The API key to use for authentication. */
key: string;
}
/**
* The authentication options for Azure OpenAI On Your Data vector search when using access token.
*/
export interface OnYourDataVectorSearchAccessTokenAuthenticationOptions
extends OnYourDataVectorSearchAuthenticationOptions {
/** The authentication type of access token. */
type: "access_token";
/** The access token to use for authentication. */
access_token: string;
}
/**
* Represents the integrated vectorizer defined within the search resource.
*/
export interface OnYourDataIntegratedVectorizationSource
extends OnYourDataVectorizationSourceParent {
/** The type discriminator. Always 'integrated'. */
type: "integrated";
}
/** The authentication options for Azure OpenAI On Your Data. */
export type OnYourDataAuthenticationOptions =
| OnYourDataAuthenticationOptionsParent
| OnYourDataApiKeyAuthenticationOptions
| OnYourDataConnectionStringAuthenticationOptions
| OnYourDataKeyAndKeyIdAuthenticationOptions
| OnYourDataEncodedApiKeyAuthenticationOptions
| OnYourDataAccessTokenAuthenticationOptions
| OnYourDataSystemAssignedManagedIdentityAuthenticationOptions
| OnYourDataUserAssignedManagedIdentityAuthenticationOptions;
/** An abstract representation of a vectorization source for Azure OpenAI On Your Data with vector search. */
export type OnYourDataVectorizationSource =
| OnYourDataVectorizationSourceParent
| OnYourDataEndpointVectorizationSource
| OnYourDataDeploymentNameVectorizationSource
| OnYourDataModelIdVectorizationSource
| OnYourDataIntegratedVectorizationSource;
/**
* 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 AzureChatExtensionConfiguration =
| AzureChatExtensionConfigurationParent
| AzureSearchChatExtensionConfiguration
| AzureCosmosDBChatExtensionConfiguration
| ElasticsearchChatExtensionConfiguration
| PineconeChatExtensionConfiguration
| MongoDBChatExtensionConfiguration;