diff --git a/clients/js/src/index.ts b/clients/js/src/index.ts index 70687387009..500af4a2b97 100644 --- a/clients/js/src/index.ts +++ b/clients/js/src/index.ts @@ -51,7 +51,7 @@ export class OpenAIEmbeddingFunction { const openai = new OpenAIApi.OpenAIApi(configuration); const embeddings = []; const response = await openai.createEmbedding({ - model: "text-embedding-ada-002", + model: this.model, input: texts, }); const data = response.data['data']; @@ -436,4 +436,4 @@ export class ChromaClient { return response } -} \ No newline at end of file +}