fix: Ollama Model Component build config updates and formats info to prevent issues in DSLF. (#5978)
* Update ollama.py * update ib build config * [autofix.ci] apply automated fixes * improves stability of build config. * [autofix.ci] apply automated fixes * Update ollama.py * test: update ChatOllamaComponent test to validate Ollama URL handling --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
3163a56967
commit
b2ef231cd4
2 changed files with 17 additions and 12 deletions
|
|
@ -88,9 +88,8 @@ async def test_update_build_config_model_name(mock_get, component):
|
|||
field_value = None
|
||||
field_name = "model_name"
|
||||
|
||||
updated_config = await component.update_build_config(build_config, field_value, field_name)
|
||||
|
||||
assert updated_config["model_name"]["options"] == []
|
||||
with pytest.raises(ValueError, match="No valid Ollama URL found"):
|
||||
await component.update_build_config(build_config, field_value, field_name)
|
||||
|
||||
|
||||
async def test_update_build_config_keep_alive(component):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue