mirror of
https://github.com/domfelipe/hermes-agent-custom.git
synced 2026-08-07 06:56:41 +00:00
fix: enable mika runtime tools in gateway config
This commit is contained in:
parent
23e98ca785
commit
371e6325b9
3 changed files with 48 additions and 0 deletions
|
|
@ -60,6 +60,13 @@ RUN printf '%s\n' \
|
||||||
'model:' \
|
'model:' \
|
||||||
' provider: "ollama-cloud"' \
|
' provider: "ollama-cloud"' \
|
||||||
' default: "gemma4:31b-cloud"' \
|
' default: "gemma4:31b-cloud"' \
|
||||||
|
'plugins:' \
|
||||||
|
' enabled:' \
|
||||||
|
' - mika_runtime' \
|
||||||
|
'platform_toolsets:' \
|
||||||
|
' telegram:' \
|
||||||
|
' - hermes-telegram' \
|
||||||
|
' - mika_integrations' \
|
||||||
'stt:' \
|
'stt:' \
|
||||||
' enabled: true' \
|
' enabled: true' \
|
||||||
' provider: "local"' \
|
' provider: "local"' \
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,13 @@ data_dir: /opt/data
|
||||||
model:
|
model:
|
||||||
provider: "${MODEL_PROVIDER}"
|
provider: "${MODEL_PROVIDER}"
|
||||||
default: "${MODEL_DEFAULT}"
|
default: "${MODEL_DEFAULT}"
|
||||||
|
plugins:
|
||||||
|
enabled:
|
||||||
|
- mika_runtime
|
||||||
|
platform_toolsets:
|
||||||
|
telegram:
|
||||||
|
- hermes-telegram
|
||||||
|
- mika_integrations
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
case "${STT_PROVIDER}" in
|
case "${STT_PROVIDER}" in
|
||||||
|
|
|
||||||
34
tests/test_runtime_config.py
Normal file
34
tests/test_runtime_config.py
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
|
||||||
|
|
||||||
|
class RuntimeConfigTests(unittest.TestCase):
|
||||||
|
def test_entrypoint_enables_mika_runtime_plugin_for_telegram(self) -> None:
|
||||||
|
entrypoint = (ROOT / "entrypoint.sh").read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
self.assertIn("plugins:\n enabled:\n - mika_runtime", entrypoint)
|
||||||
|
self.assertIn(
|
||||||
|
"platform_toolsets:\n"
|
||||||
|
" telegram:\n"
|
||||||
|
" - hermes-telegram\n"
|
||||||
|
" - mika_integrations",
|
||||||
|
entrypoint,
|
||||||
|
)
|
||||||
|
|
||||||
|
def test_dockerfile_fallback_config_matches_runtime_plugin_settings(self) -> None:
|
||||||
|
dockerfile = (ROOT / "Dockerfile").read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
self.assertIn("'plugins:' \\", dockerfile)
|
||||||
|
self.assertIn("' - mika_runtime' \\", dockerfile)
|
||||||
|
self.assertIn("'platform_toolsets:' \\", dockerfile)
|
||||||
|
self.assertIn("' - hermes-telegram' \\", dockerfile)
|
||||||
|
self.assertIn("' - mika_integrations' \\", dockerfile)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue