Files
windpacer 302183c97e feat: P&ID 연결 분석, LLM 에이전트 모드, KB 확장, MCP 서버 리팩토링
- P&ID: 연결 분석 API, Prefix 규칙 관리, 카테고리 분류, DXF 그래프 빌드
- LLM: 대화 요약, tool card 영구 보존, 시계열 차트(uPlot), 에이전트 모드
- KB: 청크 미리보기, Field Instrument Inference, 인증/Qdrant 클라이언트
- MCP: 서버 기능 확장, 파이프라인 수정, timeout 개선
- Frontend: P&ID UI, LLM UI, KB UI, OPC UA Write 탭 추가
- 설정: AGENTS.md, plant_context, README, opencode.json 업데이트
- 정리: 진단 체크리스트 문서 삭제
2026-05-21 23:36:57 +09:00

22 lines
556 B
Python

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