diff --git a/ai_chatbot_backend/app/core/models/chat_completion.py b/ai_chatbot_backend/app/core/models/chat_completion.py index 2042028f..4727fb98 100755 --- a/ai_chatbot_backend/app/core/models/chat_completion.py +++ b/ai_chatbot_backend/app/core/models/chat_completion.py @@ -148,7 +148,7 @@ class FileCompletionParams(BaseModel): Parameters for file-based chat completions. """ course_code: str - audio: VoiceMessage + audio: VoiceMessage = None messages: List[Message] stream: bool chat_type: str = "file" # e.g., "general", "file", "practice" @@ -156,7 +156,7 @@ class FileCompletionParams(BaseModel): audio_response: Optional[bool] = False sid: Optional[str] = None # chat_history_sid from frontend user_focus: UserFocus - tutor_mode: Optional[bool] = True # Enable tutor mode (Bloom taxonomy, hints-first) + tutor_mode: Optional[bool] = False # Enable tutor mode (Bloom taxonomy, hints-first) json_output: Optional[bool] = True # Enable JSON output format (derived from tutor_mode if not set) class PracticeCompletionParams(BaseModel): @@ -174,7 +174,7 @@ class PracticeCompletionParams(BaseModel): answer_content: str problem_id: str file_path: str - tutor_mode: Optional[bool] = True # Enable tutor mode (Bloom taxonomy, hints-first) + tutor_mode: Optional[bool] = False # Enable tutor mode (Bloom taxonomy, hints-first) json_output: Optional[bool] = True # Enable JSON output format (derived from tutor_mode if not set) class VoiceTranscriptParams(BaseModel): diff --git a/ai_chatbot_backend/app/services/generation/tutor/query.py b/ai_chatbot_backend/app/services/generation/tutor/query.py index 77e33e43..608c5c8c 100644 --- a/ai_chatbot_backend/app/services/generation/tutor/query.py +++ b/ai_chatbot_backend/app/services/generation/tutor/query.py @@ -42,7 +42,7 @@ async def build_tutor_context( # 1. Message formatting (tutor_mode=True for tutor) messages = format_chat_msg( messages, - tutor_mode=True, + tutor_mode=False, audio_response=audio_response ) @@ -120,7 +120,7 @@ async def build_tutor_context( problem_content=problem_content, answer_content=answer_content, audio_response=audio_response, - tutor_mode=True, + tutor_mode=False, outline_mode=True, )