diff src/lib/Chat.luan @ 69:f5e72f2d1025

add stt_prompt
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 23 Aug 2025 07:07:59 -0600
parents ecb851fabd75
children 44bec62c49e2
line wrap: on
line diff
--- a/src/lib/Chat.luan	Sat Aug 23 04:32:17 2025 -0600
+++ b/src/lib/Chat.luan	Sat Aug 23 07:07:59 2025 -0600
@@ -37,6 +37,7 @@
 		autoplay = doc.autoplay == "true"
 		is_private = doc.is_private == "true"
 		has_ruby = doc.has_ruby == "true"
+		stt_prompt = doc.stt_prompt or ""
 	}
 end
 
@@ -50,12 +51,13 @@
 		name = chat.name or error()
 		ai_thread = chat.ai_thread or error()
 		language = chat.language or error()
-		tts_instructions = chat.tts_instructions -- or error()
+		tts_instructions = chat.tts_instructions or error()
 		voice = chat.voice or error()
 		show_text = chat.show_text
 		autoplay = chat.autoplay and "true" or "false"
 		is_private = chat.is_private and "true" or nil
 		has_ruby = chat.has_ruby and "true" or nil
+		stt_prompt = chat.stt_prompt or error()
 	}
 end
 
@@ -87,6 +89,7 @@
 			show_text = chat.show_text
 			autoplay = chat.autoplay
 			is_private = chat.is_private
+			stt_prompt = chat.stt_prompt
 		}
 	end