[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
748b531528
commit
e57a5a9ce2
1 changed files with 6 additions and 8 deletions
|
|
@ -829,16 +829,14 @@ def test_ollama_models_are_not_advertised_as_api_loadable():
|
|||
the auto-switch index and no OpenAI request can resolve it. target.isGguf is
|
||||
still true for one, so gating on that alone mirrored settings the API can
|
||||
never apply and told the user the opposite."""
|
||||
types_src = " ".join(
|
||||
_read("features/model-picker/components/model-selector/types.ts").split()
|
||||
)
|
||||
types_src = " ".join(_read("features/model-picker/components/model-selector/types.ts").split())
|
||||
assert "apiLoadable?: boolean;" in types_src
|
||||
hub = " ".join(_read("features/hub/hub-page.tsx").split())
|
||||
assert 'row.source !== LOCAL_MODEL_SOURCE.OLLAMA' in hub
|
||||
assert 'apiLoadable:' in hub
|
||||
assert "row.source !== LOCAL_MODEL_SOURCE.OLLAMA" in hub
|
||||
assert "apiLoadable:" in hub
|
||||
backend = (
|
||||
WORKDIR / "studio" / "backend" / "core" / "inference" / "local_model_resolver.py"
|
||||
).read_text(encoding = "utf-8")
|
||||
assert "Ollama's\n scanner is skipped" in backend or "scanner is skipped" in backend, (
|
||||
"the rule this mirrors"
|
||||
)
|
||||
assert (
|
||||
"Ollama's\n scanner is skipped" in backend or "scanner is skipped" in backend
|
||||
), "the rule this mirrors"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue