Commit 6b07490 1 parent e333dab commit 6b07490 Copy full SHA for 6b07490
File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -180,10 +180,12 @@ export type Text2VecAWSConfig = {
180
180
export type Text2VecAzureOpenAIConfig = {
181
181
/** The base URL to use where API requests should go. */
182
182
baseURL ?: string ;
183
- /** The deployment ID to use */
184
- deploymentId : string ;
185
- /** The resource name to use. */
186
- resourceName : string ;
183
+ /** The deployment ID to use. If left empty, must be provided via X-Azure-Deployment-Id header */
184
+ deploymentId ?: string ;
185
+ /** The resource name to use. If left empty, must be provided via X-Azure-Resource-Name header */
186
+ resourceName ?: string ;
187
+ /** Will automatically be set to true. You don't need to set this manually. */
188
+ isAzure ?: true ;
187
189
/** Whether to vectorize the collection name. */
188
190
vectorizeCollectionName ?: boolean ;
189
191
} ;
Original file line number Diff line number Diff line change @@ -253,7 +253,10 @@ export const vectorizer = {
253
253
vectorIndexConfig,
254
254
vectorizerConfig : {
255
255
name : 'text2vec-azure-openai' ,
256
- config,
256
+ config : {
257
+ ...config ,
258
+ isAzure : true ,
259
+ } ,
257
260
} ,
258
261
} ) ;
259
262
} ,
You can’t perform that action at this time.
0 commit comments