Explorar o código

add embedding max retries (#699)

Jyong hai 1 ano
pai
achega
fa73aa8dbf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
             ))