mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 15:04:13 +00:00
community: Add keep_alive
parameter to control how long the model w… (#19005)
Add `keep_alive` parameter to control how long the model will stay loaded into memory with Ollama。 --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
@@ -100,6 +100,7 @@ def test_handle_kwargs_top_level_parameters(monkeypatch: MonkeyPatch) -> None:
|
||||
"prompt": "Test prompt",
|
||||
"system": "Test system prompt",
|
||||
"template": None,
|
||||
"keep_alive": None,
|
||||
}
|
||||
assert stream is True
|
||||
assert timeout == 300
|
||||
@@ -147,6 +148,7 @@ def test_handle_kwargs_with_unknown_param(monkeypatch: MonkeyPatch) -> None:
|
||||
"prompt": "Test prompt",
|
||||
"system": None,
|
||||
"template": None,
|
||||
"keep_alive": None,
|
||||
}
|
||||
assert stream is True
|
||||
assert timeout == 300
|
||||
@@ -178,6 +180,7 @@ def test_handle_kwargs_with_options(monkeypatch: MonkeyPatch) -> None:
|
||||
"prompt": "Test prompt",
|
||||
"system": None,
|
||||
"template": None,
|
||||
"keep_alive": None,
|
||||
}
|
||||
assert stream is True
|
||||
assert timeout == 300
|
||||
|
Reference in New Issue
Block a user