add embedding max retries (#699)

This commit is contained in:
Jyong 2023-07-31 23:28:37 +08:00 committed by GitHub
parent c48ec1334e
commit fa73aa8dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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