소스 검색

add embedding max retries (#699)

Jyong 1 년 전
부모
커밋
fa73aa8dbf
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      api/core/index/index.py

+ 1 - 0
api/core/index/index.py

@@ -22,6 +22,7 @@ class IndexBuilder:
             )
 
             embeddings = CacheEmbedding(OpenAIEmbeddings(
+                max_retries=1,
                 **model_credentials
             ))