Skip to content
Snippets Groups Projects
Commit bb7fd38c authored by Yi Ding's avatar Yi Ding
Browse files

removing the newline to space embedding conversion

parent a734927a
No related branches found
No related tags found
No related merge requests found
...@@ -280,9 +280,6 @@ export class OpenAIEmbedding extends BaseEmbedding { ...@@ -280,9 +280,6 @@ export class OpenAIEmbedding extends BaseEmbedding {
} }
private async getOpenAIEmbedding(input: string) { private async getOpenAIEmbedding(input: string) {
input = input.replace(/\n/g, " ");
//^ NOTE this performance helper is in the OpenAI python library but may not be in the JS library
const { data } = await this.session.openai.embeddings.create({ const { data } = await this.session.openai.embeddings.create({
model: this.model, model: this.model,
input, input,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment