mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-12 04:16:54 +08:00
fix: ollama text embedding 500 error (#8131)
This commit is contained in:
@@ -89,7 +89,8 @@ class OllamaEmbeddingModel(TextEmbeddingModel):
|
|||||||
endpoint_url,
|
endpoint_url,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
data=json.dumps(payload),
|
data=json.dumps(payload),
|
||||||
timeout=(10, 300)
|
timeout=(10, 300),
|
||||||
|
options={"use_mmap": "true"}
|
||||||
)
|
)
|
||||||
|
|
||||||
response.raise_for_status() # Raise an exception for HTTP errors
|
response.raise_for_status() # Raise an exception for HTTP errors
|
||||||
|
|||||||
Reference in New Issue
Block a user