mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-19 10:10:24 +00:00
feat: Add login page with dynamic RGB effects and password toggle functionality
feat: Implement package management utilities with JSON endpoints for listing and uninstalling packages feat: Create plugin management utilities with endpoints for listing, configuring, and installing plugins feat: Develop schedule and trigger management utilities with CRUD operations for schedules and triggers
This commit is contained in:
@@ -1,15 +1,4 @@
|
||||
# land_protocol.py
|
||||
# Python client for the LAND Protocol (Local AI Network Discovery).
|
||||
# https://github.com/infinition/land-protocol
|
||||
#
|
||||
# Replace this file to update LAND protocol compatibility.
|
||||
# Imported by llm_bridge.py — no other Bjorn code touches this.
|
||||
#
|
||||
# Protocol summary:
|
||||
# Discovery : mDNS service type _ai-inference._tcp.local. (port 5353)
|
||||
# Transport : TCP HTTP on port 8419 by default
|
||||
# Infer : POST /infer {"prompt": str, "capability": "llm", "max_tokens": int}
|
||||
# Response : {"response": str} or {"text": str}
|
||||
"""land_protocol.py - LAND protocol client: mDNS discovery + HTTP inference for local AI nodes."""
|
||||
|
||||
import json
|
||||
import threading
|
||||
@@ -43,11 +32,11 @@ def discover_node(
|
||||
except ImportError:
|
||||
if logger:
|
||||
logger.warning(
|
||||
"zeroconf not installed — LAND mDNS discovery disabled. "
|
||||
"zeroconf not installed - LAND mDNS discovery disabled. "
|
||||
"Run: pip install zeroconf"
|
||||
)
|
||||
else:
|
||||
print("[LAND] zeroconf not installed — mDNS discovery disabled")
|
||||
print("[LAND] zeroconf not installed - mDNS discovery disabled")
|
||||
return
|
||||
|
||||
class _Listener(ServiceListener):
|
||||
|
||||
Reference in New Issue
Block a user