wu981526092 commited on
Commit
b522e95
·
1 Parent(s): 5a5132a
frontend/src/components/shared/modals/MethodSelectionModal.tsx CHANGED
@@ -64,7 +64,11 @@ export function MethodSelectionModal({
64
  recommended: id === "openai_structured",
65
  })
66
  );
67
- setMethods(methodList);
 
 
 
 
68
  } catch (error) {
69
  console.error("Failed to fetch methods:", error);
70
  // Fallback to default method
@@ -145,7 +149,8 @@ export function MethodSelectionModal({
145
  if (!!a.recommended === !!b.recommended) return 0;
146
  return a.recommended ? -1 : 1;
147
  });
148
- const baselineMethods = methods.filter((m) => m.method_type === "baseline");
 
149
 
150
  return (
151
  <Dialog open={open} onOpenChange={onOpenChange}>
 
64
  recommended: id === "openai_structured",
65
  })
66
  );
67
+ // HuggingFace UI: hide all baseline methods from selection
68
+ const productionOnly = methodList.filter(
69
+ (m: any) => m.method_type === "production"
70
+ );
71
+ setMethods(productionOnly);
72
  } catch (error) {
73
  console.error("Failed to fetch methods:", error);
74
  // Fallback to default method
 
149
  if (!!a.recommended === !!b.recommended) return 0;
150
  return a.recommended ? -1 : 1;
151
  });
152
+ // Hide baseline methods in the HuggingFace version
153
+ const baselineMethods: MethodOption[] = [];
154
 
155
  return (
156
  <Dialog open={open} onOpenChange={onOpenChange}>