Mercurial Hosting > lang
comparison src/new_chat.red.luan @ 46:cc20eebaa74a
use openai tts
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 14 Aug 2025 11:27:34 +0900 |
parents | 3117876debca |
children | 27758f3b2d69 |
comparison
equal
deleted
inserted
replaced
45:fef7a5c65cfb | 46:cc20eebaa74a |
---|---|
18 local chat = Chat.new{ | 18 local chat = Chat.new{ |
19 user_id = user.id | 19 user_id = user.id |
20 course_id = course.id | 20 course_id = course.id |
21 name = course.name | 21 name = course.name |
22 language = course.language | 22 language = course.language |
23 tts_instructions = course.tts_instructions | |
23 ai_thread = ai_init(course.ai_system_prompt) | 24 ai_thread = ai_init(course.ai_system_prompt) |
24 } | 25 } |
25 chat.save() | 26 chat.save() |
26 Http.response.send_redirect("chat.html?chat="..chat.id) | 27 Http.response.send_redirect("chat.html?chat="..chat.id) |
27 end | 28 end |