Skip to content

Commit 5e90224

Browse files
authored
Merge pull request #175 from weaviate/modules/fix-deploymentid-in-azure-openai-conf
Rename `deploymentID` to `deploymentId` in azure openAI config
2 parents 9ca6b4e + 0397280 commit 5e90224

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/collections/config/types/vectorizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export type Text2VecAzureOpenAIConfig = {
179179
/** The base URL to use where API requests should go. */
180180
baseURL?: string;
181181
/** The deployment ID to use */
182-
deploymentID: string;
182+
deploymentId: string;
183183
/** The resource name to use. */
184184
resourceName: string;
185185
/** Whether to vectorize the collection name. */

src/collections/configure/unit.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ describe('Unit testing of the vectorizer factory class', () => {
580580

581581
it('should create the correct Text2VecAzureOpenAIConfig type with defaults', () => {
582582
const config = configure.vectorizer.text2VecAzureOpenAI({
583-
deploymentID: 'deployment-id',
583+
deploymentId: 'deployment-id',
584584
resourceName: 'resource-name',
585585
});
586586
expect(config).toEqual<VectorConfigCreate<never, undefined, 'hnsw', 'text2vec-azure-openai'>>({
@@ -592,7 +592,7 @@ describe('Unit testing of the vectorizer factory class', () => {
592592
vectorizer: {
593593
name: 'text2vec-azure-openai',
594594
config: {
595-
deploymentID: 'deployment-id',
595+
deploymentId: 'deployment-id',
596596
resourceName: 'resource-name',
597597
},
598598
},
@@ -603,7 +603,7 @@ describe('Unit testing of the vectorizer factory class', () => {
603603
const config = configure.vectorizer.text2VecAzureOpenAI({
604604
name: 'test',
605605
baseURL: 'base-url',
606-
deploymentID: 'deployment-id',
606+
deploymentId: 'deployment-id',
607607
resourceName: 'resource-name',
608608
vectorizeCollectionName: true,
609609
});
@@ -617,7 +617,7 @@ describe('Unit testing of the vectorizer factory class', () => {
617617
name: 'text2vec-azure-openai',
618618
config: {
619619
baseURL: 'base-url',
620-
deploymentID: 'deployment-id',
620+
deploymentId: 'deployment-id',
621621
resourceName: 'resource-name',
622622
vectorizeCollectionName: true,
623623
},

0 commit comments

Comments
 (0)