biller-cli 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {biller_cli-0.2.0 → biller_cli-0.2.1}/PKG-INFO +1 -1
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/ai/ollama_client.py +9 -15
- {biller_cli-0.2.0 → biller_cli-0.2.1}/pyproject.toml +1 -1
- {biller_cli-0.2.0 → biller_cli-0.2.1}/.gitignore +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/__init__.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/ai/__init__.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/ai/config_manager.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/ai/ingest.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/ai/retriever.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/ask.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/config.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/debug.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/down.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/downgrade.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/ingest.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/init.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/setup.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/up.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/commands/upgrade.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/main.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/pom.xml +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/ApplicationContext.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/config/DatabaseConfig.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/config/WebCorsConfig.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/controller/BbpsRequestController.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/dao/impl/BillFetchDaoImpl.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/dao/impl/BillPaymentDaoImpl.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/provider/BillingProviderConfig.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/provider/BillingProviderProperties.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/provider/impl/CsvBillingProvider.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/provider/impl/ExcelBillingProvider.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/provider/impl/PostgresBillingProvider.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/service/impl/BillFetchServiceImpl.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/service/impl/BillPaymentServiceImpl.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/java/bharat/connect/biller/service/impl/HeartbeatServiceImpl.java +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/biller-user-layer/src/main/resources/application.properties +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/templates/pom.xml +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/utils/preflight.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/utils/secrets.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/biller_cli/utils/version_pin.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/__init__.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/integration/__init__.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/integration/conftest.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/integration/test_docker_lifecycle.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/integration/test_native_lifecycle.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/__init__.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_downgrade.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_main.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_preflight.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_secrets.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_upgrade.py +0 -0
- {biller_cli-0.2.0 → biller_cli-0.2.1}/tests/unit/test_version_pin.py +0 -0
|
@@ -45,14 +45,12 @@ def _not_running_message() -> str:
|
|
|
45
45
|
|
|
46
46
|
def check_ollama_ready() -> None:
|
|
47
47
|
"""
|
|
48
|
-
Verify Ollama is running and
|
|
49
|
-
|
|
50
|
-
Does NOT exit — callers decide how to handle.
|
|
48
|
+
Verify Ollama is running and the LLM model is available.
|
|
49
|
+
Does NOT check embedding model — that is only needed for local ingest.
|
|
51
50
|
"""
|
|
52
51
|
import subprocess
|
|
53
52
|
|
|
54
53
|
llm_model = _get_llm_model()
|
|
55
|
-
embed_model = _get_embed_model()
|
|
56
54
|
|
|
57
55
|
try:
|
|
58
56
|
result = subprocess.run(
|
|
@@ -65,23 +63,19 @@ def check_ollama_ready() -> None:
|
|
|
65
63
|
raise RuntimeError(
|
|
66
64
|
"\nOllama is not installed or not on PATH.\n"
|
|
67
65
|
"Install from: https://ollama.com\n"
|
|
68
|
-
+ _not_running_message()
|
|
69
66
|
)
|
|
70
67
|
except subprocess.TimeoutExpired:
|
|
71
68
|
raise RuntimeError(
|
|
72
69
|
"\nOllama did not respond within 10 seconds.\n"
|
|
73
|
-
|
|
70
|
+
"Start it with: ollama serve\n"
|
|
74
71
|
)
|
|
75
72
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
f"Pull it with:\n"
|
|
83
|
-
f" ollama pull {model}\n"
|
|
84
|
-
)
|
|
73
|
+
if llm_model not in result.stdout:
|
|
74
|
+
raise RuntimeError(
|
|
75
|
+
f"\nOllama model '{llm_model}' is not available.\n"
|
|
76
|
+
f"Pull it with:\n"
|
|
77
|
+
f" ollama pull {llm_model}\n"
|
|
78
|
+
)
|
|
85
79
|
|
|
86
80
|
|
|
87
81
|
def stream_response(prompt: str, system: str) -> Generator[str, None, None]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|