Repository navigation
feat: 기존 CLI·Discord·문서 추론 전체를 Codex 기반으로 전환 - #258
Closed
seyoung4503 wants to merge 3 commits into
Closed
seyoung4503 wants to merge 3 commits into
seyoung4503 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ Issue Number
📝 요약(Summary)
lang2sqlCLI, Discord query, 문서 정의 추출, 스키마 설명 생성, 조직/팀 용어 추출의 기본 추론을 모두 CodexLLM으로 전환합니다. OPENAI_API_KEY/로컬 URL에 따른 모델 선택 및 자동 FakeLLM fallback을 제거합니다.💬 To Reviewers
실제 소비 경로
lang2sqlcodex login을 서비스 실행 사용자로 수행하고 Codex 실행 파일을 PATH에 둡니다.LANG2SQL_LLM_MODEL은 Codex 모델 ID,LANG2SQL_LLM_TIMEOUT은 호출당 제한(기본 180초)입니다. 미설정 모델은 Codex CLI 기본값을 사용하며 실제 모델 ID를 추정하지 않습니다. 설정/배포 예제도 변경했습니다.Codex 실패는 전파합니다. 미등록 도구, JSON이 아닌 인수, 빈 응답은 거부합니다. 기존 OpenAILLM 클래스는 명시적 호환용으로 남아 있으나 제품 조립점에서는 사용하지 않습니다. FakeLLM은 오프라인 테스트에서 명시적으로 주입합니다.
검증 근거
bench/codex/results/harness.json: Codex + 기존 하네스 + 실제 Oracle 5/5. 영업 매출 2,000,000 / 재무 1,700,000 / 모호한 질문 SQL 0회 / HR 급여 / 영업 권한 차단.bench/codex/results/extraction.json: 기본 concierge의 실제 Codex 문서 정의 추출 성공.bench/codex/results/verified.json: 선택적 MCP 경로의 별도 5/5 기록. 고정 5개 합성 사례로 일반 정확도를 주장하지 않습니다.Discord 실제 서버에 메시지를 전송하는 검증은 하지 않았습니다. command handler 호출은 자동 테스트했습니다. 운영 인증·DB 신원 매핑, VPD/행·컬럼 권한, 서버 측 비용·시간 제한은 후속 범위입니다. 기존 MCP PPT는 MCP 시연 자료이며 기본 제품 경로는 위 표와 문서를 기준으로 봐주세요.
PR Checklist
구현 원칙 verify
기존 LLMPort, Completion/ToolCall, 하네스, 도구, 안전 검사, DB adapter, 세션/저장소를 재사용합니다. 이번 전체 전환 후속 변경의 제품 코드 순증은 137줄(기존 MCP PR 커밋 대비)이며 subprocess 구현을 공통화했습니다.