운영 점검 결함 수정: 감독 주기 충돌, 로그인 확인 지연, 비용 단가
Some checks failed
API contract / OpenAPI type drift (push) Failing after 6m30s
Some checks failed
API contract / OpenAPI type drift (push) Failing after 6m30s
- 감독·연구 생성 주기: 교육과정 공백·근거 묶음 제출 번호 지문이 저장 내용 전체(상태·불확실도·영향 학습자 수·근거 포인터)를 덮게 해, 9월 근거 링크 변경 뒤 매시 반복되던 제출 번호 충돌과 코호트 롤백을 없앤다. - 세션 복원: last_seen_at 갱신을 60초 간격으로 묶어 로그인 요청마다 생기던 확정 쓰기 2회를 줄인다. 관리자 권한 승격은 즉시 반영한다. - 비용: OpenAI API gpt-5.6-terra 공식 표준 단가(2026-07-30부터)를 참조 단가에 추가해 관리자 비용 화면의 $0 표시를 바로잡는다. - 음성 합성 실패(502) 원인을 서버 기록에 남긴다.
This commit is contained in:
parent
cc4a943ad8
commit
7facf961c5
8 changed files with 566 additions and 10 deletions
|
|
@ -17,6 +17,7 @@ import asyncio
|
|||
import json
|
||||
import hashlib
|
||||
import hmac
|
||||
import logging
|
||||
import time
|
||||
from dataclasses import dataclass, field as dataclass_field
|
||||
from typing import Optional
|
||||
|
|
@ -69,6 +70,7 @@ from ..services.voice_runtime import (
|
|||
from ..store import InProcSession, TurnRecord, store
|
||||
|
||||
router = APIRouter(prefix="/voice", tags=["voice"])
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class VoiceSpeechRequest(BaseModel):
|
||||
|
|
@ -297,6 +299,13 @@ async def voice_speech(
|
|||
detail=str(exc),
|
||||
) from exc
|
||||
except Exception as exc:
|
||||
logger.warning(
|
||||
"TTS 합성 실패: session=%s turn=%s error=%s: %s",
|
||||
body.session_id,
|
||||
body.turn_seq,
|
||||
type(exc).__name__,
|
||||
exc,
|
||||
)
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_502_BAD_GATEWAY,
|
||||
detail=f"TTS failed: {exc}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue