mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: ollama text embedding 500 error (#8131)
This commit is contained in:
parent
50d92f0fd4
commit
a27d4d58ec
|
@ -89,7 +89,8 @@ class OllamaEmbeddingModel(TextEmbeddingModel):
|
|||
endpoint_url,
|
||||
headers=headers,
|
||||
data=json.dumps(payload),
|
||||
timeout=(10, 300)
|
||||
timeout=(10, 300),
|
||||
options={"use_mmap": "true"}
|
||||
)
|
||||
|
||||
response.raise_for_status() # Raise an exception for HTTP errors
|
||||
|
|
Loading…
Reference in New Issue
Block a user