Skip to content

Commit d03697a

Browse files
author
xusenlin
committed
Fix bug
1 parent a00046b commit d03697a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/routes/embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def create_embeddings(request: EmbeddingCreateParams, model_name: str = No
3939
instruction = "为这个句子生成表示以用于检索相关文章:"
4040
elif "en" in config.EMBEDDING_NAME.lower():
4141
instruction = "Represent this sentence for searching relevant passages: "
42-
request.inputs = [instruction + q for q in request.input]
42+
request.input = [instruction + q for q in request.input]
4343

4444
data, total_tokens = [], 0
4545
batches = [

0 commit comments

Comments
 (0)