mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
fix: ollama text embedding 500 error (#8131)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user