Explorar el Código

add embedding max retries (#699)

Jyong hace 1 año
padre
commit
fa73aa8dbf
Se han modificado 1 ficheros con 1 adiciones y 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
             ))