Demo Custom Course
Stream Custom Course Conversation
Streams GPT's reply for a custom course doc, using ephemeral conversation_history in memory. We keep the same SSE approach from your original code, but no DB or user references.
We add 'lang' so we can pass it to get_prompt_data(...) to pick the correct language prompts if needed.
get/demo-custom-course/{course_id}/conversation/stream
Path parameters
course_idstring required
Query parameters
session_idstring required
Ephemeral session ID
Ephemeral session ID
tokenstring
Unused here, but keep the same signature
Unused here, but keep the same signature
langstring
Language code, 'EN' or 'FR'
Language code, 'EN' or 'FR'
Response
Successful Response
{"stackTrail":"paths:/demo-custom-course/{course_id}/conversation/stream:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}