가격 트랙 라벨 겹침 수정(스태거 배치) + 포트 변경 frontend 3000 · backend 3300
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
1 parent
045f2517be
commit
156ce3817d
16 files changed
+71
-36
No files matched your search
+1
-1
@@ -31,6 +31,6 @@ RUN python3.10 -m pip install --no-cache-dir torch==2.4.1 --index-url https://do
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 53117
|
||||
EXPOSE 3300
|
||||
|
||||
CMD ["python3.10", "web_main.py"]
|
||||
+3
-3
@@ -11,14 +11,14 @@
|
||||
```bash
|
||||
# 로컬
|
||||
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
|
||||
.venv/bin/python web_main.py # → http://localhost:53117/docs
|
||||
.venv/bin/python web_main.py # → http://localhost:3300/docs
|
||||
|
||||
# 테스트
|
||||
.venv/bin/python -m pytest tests/
|
||||
|
||||
# Docker (평가환경 재현: Ubuntu 20.04 + Python 3.10)
|
||||
docker build -t nego-agent .
|
||||
docker run -p 53117:53117 -e OPENAI_API_KEY=sk-... nego-agent
|
||||
docker run -p 3300:3300 -e OPENAI_API_KEY=sk-... nego-agent
|
||||
```
|
||||
|
||||
## API
|
||||
@@ -32,7 +32,7 @@ docker run -p 53117:53117 -e OPENAI_API_KEY=sk-... nego-agent
|
||||
|
||||
## 설정 — `config.toml` 하나 (환경 구분 없음)
|
||||
|
||||
- `[server]` 포트 53117
|
||||
- `[server]` 포트 3300
|
||||
- `[openai]` 모델·API 키 (비우면 `OPENAI_API_KEY` 환경변수)
|
||||
- `[profiling]` N-profiling(LLM 톤 변환) on/off — 요청 body의 `profiling: true/false`로 건별 override. 키가 없으면 자동 비활성으로 기동
|
||||
- `[instrument]` 계측 경로 — 비우면 끔
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[server]
|
||||
name = "NEGO_AGENT"
|
||||
port = 53117
|
||||
port = 3300
|
||||
host = "0.0.0.0"
|
||||
|
||||
[openai]
|
||||
|
||||
@@ -5,7 +5,7 @@ from pydantic import BaseModel
|
||||
|
||||
class ServerConfig(BaseModel):
|
||||
name: str = "NEGO_AGENT"
|
||||
port: int = 53117
|
||||
port: int = 3300
|
||||
host: str = "0.0.0.0"
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
# python web_main.py
|
||||
#
|
||||
# 또는 uvicorn 직접 실행:
|
||||
# uvicorn router.router:app --host 0.0.0.0 --port 53117
|
||||
# uvicorn router.router:app --host 0.0.0.0 --port 3300
|
||||
|
||||
import uvicorn
|
||||
|
||||
|
||||
Reference in new issue
Block a user