mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-30 02:02:01 +08:00
add embedding max retries (#699)
This commit is contained in:
parent
c48ec1334e
commit
fa73aa8dbf
@ -22,6 +22,7 @@ class IndexBuilder:
|
|||||||
)
|
)
|
||||||
|
|
||||||
embeddings = CacheEmbedding(OpenAIEmbeddings(
|
embeddings = CacheEmbedding(OpenAIEmbeddings(
|
||||||
|
max_retries=1,
|
||||||
**model_credentials
|
**model_credentials
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user