mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 16:05:55 +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,
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user