Add Voice API type to debug UI and logs

Changes:
- Show API function (voice_ask or ask_wellnuo_ai) in Debug tab
- Update console.log to include API type in transcript log
- Add "API Function" field in Status Card with blue color

Now Debug tab clearly shows which API function is being used, making it easy to verify the Profile settings are working correctly.
This commit is contained in:
Sergei 2026-01-28 19:53:53 -08:00
parent b3d5dcd94e
commit dccf05947c
2 changed files with 15 additions and 1 deletions

View File

@ -41,6 +41,7 @@ export default function VoiceDebugScreen() {
status, status,
startSession, startSession,
stopSession, stopSession,
voiceApiType,
} = useVoice(); } = useVoice();
const { const {
@ -250,6 +251,19 @@ export default function VoiceDebugScreen() {
</View> </View>
</View> </View>
{/* Voice API Type */}
<View style={styles.statusRow}>
<Text style={styles.statusIcon}>📡</Text>
<View style={styles.statusTextContainer}>
<Text style={[styles.statusLabel, { color: isDark ? '#9CA3AF' : '#6B7280' }]}>
API Function
</Text>
<Text style={[styles.statusText, { color: '#3B82F6' }]}>
{voiceApiType}
</Text>
</View>
</View>
{/* Silence Timer */} {/* Silence Timer */}
{sttIsListening && status !== 'processing' && status !== 'speaking' && ( {sttIsListening && status !== 'processing' && status !== 'speaking' && (
<View style={styles.timerContainer}> <View style={styles.timerContainer}>

View File

@ -245,7 +245,7 @@ export function VoiceProvider({ children }: { children: ReactNode }) {
return null; return null;
} }
console.log('[VoiceContext] Sending transcript to API:', trimmedText); console.log(`[VoiceContext] Sending transcript to API (${voiceApiType}):`, trimmedText);
setStatus('processing'); setStatus('processing');
setError(null); setError(null);