Fraser commited on
Commit
981abdb
·
1 Parent(s): f0b54f8
src/lib/components/PicletGenerator/PicletGenerator.svelte CHANGED
@@ -37,10 +37,14 @@
37
 
38
  // Text generation client management - simplified to only use HunyuanTurbos
39
  type TextGenerationClient = 'hunyuan' | 'command' | 'zephyr' | 'qwen' | 'dots';
40
- let currentTextClient: TextGenerationClient = $workflowState('hunyuan'); // Fixed to HunyuanTurbos only
41
 
42
  // Get the active text generation client (now only returns HunyuanTurbos)
43
  const getActiveTextClient = () => {
 
 
 
 
44
  return hunyuanClient; // Only HunyuanTurbos is active
45
 
46
  // Unused client switching (kept for future use)
 
37
 
38
  // Text generation client management - simplified to only use HunyuanTurbos
39
  type TextGenerationClient = 'hunyuan' | 'command' | 'zephyr' | 'qwen' | 'dots';
40
+ let currentTextClient: TextGenerationClient = $state('hunyuan'); // Fixed to HunyuanTurbos only
41
 
42
  // Get the active text generation client (now only returns HunyuanTurbos)
43
  const getActiveTextClient = () => {
44
+ if (!hunyuanClient) {
45
+ console.warn('HunyuanTurbos client not yet initialized');
46
+ return null;
47
+ }
48
  return hunyuanClient; // Only HunyuanTurbos is active
49
 
50
  // Unused client switching (kept for future use)