Initial commit: HC900 Crawler
Honeywell HC900을 Modbus TCP로 직접 폴링 → gRPC → C# 크롤러 → PostgreSQL. 기존 Experion OPC UA 데이터 경로를 HC900 직접 통신으로 대체. - industrial-comm/cpp: C++ Modbus 게이트웨이 (gRPC 서버) - src: C# .NET 8 ASP.NET Core 크롤러 + 웹 UI (3-Layer) - mcp-server: Python FastMCP (RAG/NL2SQL/P&ID) - 다중 컨트롤러(N-Controller) 지원 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
21
mcp-server/config.py
Normal file
21
mcp-server/config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
_SERVER_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
_MODEL_FILE = os.path.join(_SERVER_DIR, "llm-model.json")
|
||||
|
||||
_DEFAULT_MODEL = "Qwen3.6-35B-A3B-FP8"
|
||||
|
||||
|
||||
def get_vllm_model() -> str:
|
||||
env = os.environ.get("VLLM_MODEL")
|
||||
if env:
|
||||
return env
|
||||
if not os.path.isfile(_MODEL_FILE):
|
||||
return _DEFAULT_MODEL
|
||||
try:
|
||||
with open(_MODEL_FILE, "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
return data.get("vllm_model", _DEFAULT_MODEL)
|
||||
except Exception:
|
||||
return _DEFAULT_MODEL
|
||||
Reference in New Issue
Block a user