ソースを参照

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
             ))