@iblai/iblai-js 2.76.0 → 2.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-layer/playwright/evaluation-tab-helpers.d.ts +181 -68
- package/dist/playwright/index.cjs +414 -164
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +181 -69
- package/dist/playwright/index.esm.js +407 -165
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/evaluation-tab-helpers.d.ts +181 -68
- package/dist/security/playwright/evaluation-tab-helpers.d.ts +181 -68
- package/dist/web-containers/playwright/evaluation-tab-helpers.d.ts +181 -68
- package/dist/web-containers/source/activity-empty-state.js +2 -2
- package/dist/web-containers/source/activity-empty-state.js.map +1 -1
- package/dist/web-containers/source/activity-tab/activity-empty-state.js +2 -2
- package/dist/web-containers/source/activity-tab/activity-empty-state.js.map +1 -1
- package/dist/web-containers/source/add-items-modal.js +26 -91
- package/dist/web-containers/source/add-items-modal.js.map +1 -1
- package/dist/web-containers/source/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/benchmark-items-modal.js +28 -7
- package/dist/web-containers/source/benchmark-items-modal.js.map +1 -1
- package/dist/web-containers/source/benchmarks/add-items-modal.js +26 -91
- package/dist/web-containers/source/benchmarks/add-items-modal.js.map +1 -1
- package/dist/web-containers/source/benchmarks/benchmark-items-modal.js +28 -7
- package/dist/web-containers/source/benchmarks/benchmark-items-modal.js.map +1 -1
- package/dist/web-containers/source/benchmarks/create-benchmark-modal.js +166 -20
- package/dist/web-containers/source/benchmarks/create-benchmark-modal.js.map +1 -1
- package/dist/web-containers/source/benchmarks/delete-item-confirm.js +10 -9
- package/dist/web-containers/source/benchmarks/delete-item-confirm.js.map +1 -1
- package/dist/web-containers/source/benchmarks/evals-ui.js +39 -0
- package/dist/web-containers/source/benchmarks/evals-ui.js.map +1 -0
- package/dist/web-containers/source/benchmarks/index.js +30 -11
- package/dist/web-containers/source/benchmarks/index.js.map +1 -1
- package/dist/web-containers/source/benchmarks/qa-form.js +233 -0
- package/dist/web-containers/source/benchmarks/qa-form.js.map +1 -0
- package/dist/web-containers/source/components/activity-tab/activity-empty-state.js +2 -2
- package/dist/web-containers/source/components/activity-tab/activity-empty-state.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js +68 -37
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/index.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js +68 -46
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js +14 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/index.js +2 -0
- package/dist/web-containers/source/components/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/add-items-modal.js +26 -91
- package/dist/web-containers/source/components/profile/benchmarks/add-items-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/benchmark-items-modal.js +28 -7
- package/dist/web-containers/source/components/profile/benchmarks/benchmark-items-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/create-benchmark-modal.js +166 -20
- package/dist/web-containers/source/components/profile/benchmarks/create-benchmark-modal.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/delete-item-confirm.js +10 -9
- package/dist/web-containers/source/components/profile/benchmarks/delete-item-confirm.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/evals-ui.js +39 -0
- package/dist/web-containers/source/components/profile/benchmarks/evals-ui.js.map +1 -0
- package/dist/web-containers/source/components/profile/benchmarks/index.js +30 -11
- package/dist/web-containers/source/components/profile/benchmarks/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/benchmarks/qa-form.js +233 -0
- package/dist/web-containers/source/components/profile/benchmarks/qa-form.js.map +1 -0
- package/dist/web-containers/source/components/rich-text-editor.js +24 -3
- package/dist/web-containers/source/components/rich-text-editor.js.map +1 -1
- package/dist/web-containers/source/create-benchmark-modal.js +166 -20
- package/dist/web-containers/source/create-benchmark-modal.js.map +1 -1
- package/dist/web-containers/source/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/delete-item-confirm.js +10 -9
- package/dist/web-containers/source/delete-item-confirm.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/index.js +68 -37
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/index.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/labels.js +68 -46
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/utils.js +14 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/evaluation-tab/utils.js.map +1 -1
- package/dist/web-containers/source/en.json.js +100 -74
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +81 -55
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/evals-ui.js +39 -0
- package/dist/web-containers/source/evals-ui.js.map +1 -0
- package/dist/web-containers/source/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/evaluation-tab/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/evaluation-tab/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/evaluation-tab/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/evaluation-tab/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/index.js +68 -37
- package/dist/web-containers/source/evaluation-tab/index.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/labels.js +68 -46
- package/dist/web-containers/source/evaluation-tab/labels.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/evaluation-tab/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/evaluation-tab/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/evaluation-tab/utils.js +14 -1
- package/dist/web-containers/source/evaluation-tab/utils.js.map +1 -1
- package/dist/web-containers/source/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +82 -56
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +100 -74
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +81 -55
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +82 -56
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +71 -45
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +100 -74
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +81 -55
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +82 -56
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +71 -45
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/index.js +68 -37
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/index.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js +68 -46
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js +14 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/evaluation-tab/utils.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/index.js +2 -0
- package/dist/web-containers/source/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/add-items-modal.js +26 -91
- package/dist/web-containers/source/profile/benchmarks/add-items-modal.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/benchmark-items-modal.js +28 -7
- package/dist/web-containers/source/profile/benchmarks/benchmark-items-modal.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/create-benchmark-modal.js +166 -20
- package/dist/web-containers/source/profile/benchmarks/create-benchmark-modal.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/delete-item-confirm.js +10 -9
- package/dist/web-containers/source/profile/benchmarks/delete-item-confirm.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/evals-ui.js +39 -0
- package/dist/web-containers/source/profile/benchmarks/evals-ui.js.map +1 -0
- package/dist/web-containers/source/profile/benchmarks/index.js +30 -11
- package/dist/web-containers/source/profile/benchmarks/index.js.map +1 -1
- package/dist/web-containers/source/profile/benchmarks/qa-form.js +233 -0
- package/dist/web-containers/source/profile/benchmarks/qa-form.js.map +1 -0
- package/dist/web-containers/source/qa-form.js +233 -0
- package/dist/web-containers/source/qa-form.js.map +1 -0
- package/dist/web-containers/source/rich-text-editor.js +24 -3
- package/dist/web-containers/source/rich-text-editor.js.map +1 -1
- package/dist/web-containers/source/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/benchmark-combobox.js +2 -2
- package/dist/web-containers/source/tabs/evaluation-tab/benchmark-combobox.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/delete-experiment-modal.js +6 -6
- package/dist/web-containers/source/tabs/evaluation-tab/delete-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/evaluate-llm-picker.js +7 -6
- package/dist/web-containers/source/tabs/evaluation-tab/evaluate-llm-picker.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/experiment-detail-modal.js +51 -43
- package/dist/web-containers/source/tabs/evaluation-tab/experiment-detail-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/index.js +68 -37
- package/dist/web-containers/source/tabs/evaluation-tab/index.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/labels.js +68 -46
- package/dist/web-containers/source/tabs/evaluation-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/llm-judge-modal.js +13 -6
- package/dist/web-containers/source/tabs/evaluation-tab/llm-judge-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/start-experiment-modal.js +16 -7
- package/dist/web-containers/source/tabs/evaluation-tab/start-experiment-modal.js.map +1 -1
- package/dist/web-containers/source/tabs/evaluation-tab/utils.js +14 -1
- package/dist/web-containers/source/tabs/evaluation-tab/utils.js.map +1 -1
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +71 -45
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/dist/web-utils/playwright/evaluation-tab-helpers.d.ts +181 -68
- package/package.json +4 -4
|
@@ -6901,6 +6901,8 @@ var evaluationTabLabels = {
|
|
|
6901
6901
|
actions: {
|
|
6902
6902
|
newExperiment: "Nueva evaluación",
|
|
6903
6903
|
manageBenchmarks: "Gestionar benchmarks",
|
|
6904
|
+
newBenchmark: "Nuevo benchmark",
|
|
6905
|
+
addQa: "Añadir preguntas y respuestas",
|
|
6904
6906
|
viewResults: "Ver resultados",
|
|
6905
6907
|
evaluate: "Nueva revisión",
|
|
6906
6908
|
exportCsv: "Exportar CSV",
|
|
@@ -6908,13 +6910,15 @@ var evaluationTabLabels = {
|
|
|
6908
6910
|
checkStatus: "Comprobar estado",
|
|
6909
6911
|
checkingStatus: "Comprobando...",
|
|
6910
6912
|
notReadyHint: "Disponible cuando la evaluación termine",
|
|
6913
|
+
failedHint: "No disponible porque la evaluación falló",
|
|
6911
6914
|
"delete": "Eliminar",
|
|
6912
6915
|
rowMenuAriaLabel: "Acciones para {name}"
|
|
6913
6916
|
},
|
|
6914
6917
|
checkStatusToast: {
|
|
6915
6918
|
pending: "La evaluación sigue en curso",
|
|
6916
6919
|
completed: "Evaluación completada",
|
|
6917
|
-
failed: "La evaluación falló"
|
|
6920
|
+
failed: "La evaluación falló",
|
|
6921
|
+
error: "No se pudo comprobar el estado."
|
|
6918
6922
|
},
|
|
6919
6923
|
table: {
|
|
6920
6924
|
experimentColumn: "EVALUACIÓN",
|
|
@@ -6924,46 +6928,48 @@ var evaluationTabLabels = {
|
|
|
6924
6928
|
actionsColumn: "ACCIONES",
|
|
6925
6929
|
emptyState: "Aún no hay evaluaciones de este agente en el benchmark \"{dataset}\"."
|
|
6926
6930
|
},
|
|
6927
|
-
emptyBenchmarks: "
|
|
6928
|
-
|
|
6931
|
+
emptyBenchmarks: "Tu organización aún no tiene benchmarks. Crea uno para evaluar este agente.",
|
|
6932
|
+
emptyQa: "Este benchmark aún no tiene preguntas y respuestas. Añade al menos una pregunta para ejecutar una evaluación.",
|
|
6933
|
+
exportErrorToast: "No se pudo exportar la evaluación.",
|
|
6929
6934
|
startExperimentModal: {
|
|
6930
6935
|
title: "Nueva evaluación",
|
|
6931
|
-
description: "
|
|
6936
|
+
description: "Haz a este agente cada pregunta del benchmark seleccionado. Los resultados aparecerán aquí cuando termine la evaluación.",
|
|
6932
6937
|
benchmarkLabel: "Benchmark",
|
|
6938
|
+
benchmarkInfo: "Las preguntas que se le harán a este agente. Para usar otro benchmark, cierra esta ventana y selecciónalo en la parte superior de la pestaña Evaluaciones.",
|
|
6933
6939
|
experimentNameLabel: "Nombre de la evaluación",
|
|
6934
|
-
|
|
6940
|
+
experimentNameInfo: "Un nombre para encontrar esta evaluación más adelante. Déjalo en blanco y se elegirá uno por ti.",
|
|
6941
|
+
experimentNamePlaceholder: "Déjalo en blanco para nombrarla automáticamente",
|
|
6942
|
+
noQaError: "Este benchmark aún no tiene preguntas y respuestas. Añade al menos una pregunta para ejecutar una evaluación.",
|
|
6935
6943
|
cancel: "Cancelar",
|
|
6936
6944
|
start: "Iniciar evaluación",
|
|
6937
|
-
successToast: "Evaluación iniciada",
|
|
6938
|
-
errorToast: "No se pudo iniciar la evaluación"
|
|
6945
|
+
successToast: "Evaluación iniciada: {name}",
|
|
6946
|
+
errorToast: "No se pudo iniciar la evaluación."
|
|
6939
6947
|
},
|
|
6940
6948
|
manageBenchmarksModal: {
|
|
6941
6949
|
title: "Gestionar benchmarks",
|
|
6942
|
-
description: "Crea
|
|
6950
|
+
description: "Crea benchmarks para tu organización y gestiona sus preguntas y respuestas."
|
|
6943
6951
|
},
|
|
6944
6952
|
detailModal: {
|
|
6945
6953
|
benchmarkLabel: "Benchmark",
|
|
6946
6954
|
startedPrefix: "iniciada",
|
|
6947
|
-
tracesSuffixSingular: "
|
|
6948
|
-
tracesSuffixPlural: "
|
|
6949
|
-
waitingHint: "Esperando
|
|
6955
|
+
tracesSuffixSingular: "respuesta",
|
|
6956
|
+
tracesSuffixPlural: "respuestas",
|
|
6957
|
+
waitingHint: "Esperando las primeras respuestas. Esta página se actualiza sola.",
|
|
6950
6958
|
noScoresHint: "Aún no hay puntuaciones",
|
|
6951
6959
|
newReview: "Nueva revisión",
|
|
6952
6960
|
scoreNameLabel: "Nombre de la puntuación",
|
|
6953
|
-
scoreNamePlaceholder: "precisión",
|
|
6961
|
+
scoreNamePlaceholder: "p. ej. precisión",
|
|
6954
6962
|
scoreValueLabel: "Valor",
|
|
6955
6963
|
scoreValuePlaceholder: "0.0",
|
|
6956
6964
|
scoreCommentLabel: "Comentario",
|
|
6957
6965
|
scoreCommentPlaceholder: "Opcional",
|
|
6958
6966
|
addScore: "Añadir",
|
|
6959
|
-
scoreInputError: "
|
|
6960
|
-
scoreRangeError: "
|
|
6967
|
+
scoreInputError: "Introduce un nombre de puntuación y un número.",
|
|
6968
|
+
scoreRangeError: "Introduce un número entre 0 y 1.",
|
|
6961
6969
|
scoreAddedToast: "Puntuación añadida",
|
|
6962
|
-
scoreErrorToast: "No se pudo añadir la puntuación",
|
|
6970
|
+
scoreErrorToast: "No se pudo añadir la puntuación.",
|
|
6963
6971
|
scoreRemovedToast: "Puntuación eliminada",
|
|
6964
|
-
scoreRemoveErrorToast: "No se pudo eliminar la puntuación",
|
|
6965
|
-
traceLabel: "Traza",
|
|
6966
|
-
itemLabel: "elemento",
|
|
6972
|
+
scoreRemoveErrorToast: "No se pudo eliminar la puntuación.",
|
|
6967
6973
|
removeScoreAriaLabel: "Eliminar puntuación",
|
|
6968
6974
|
inputLabel: "Entrada",
|
|
6969
6975
|
expectedOutputLabel: "Salida esperada",
|
|
@@ -6973,7 +6979,7 @@ var evaluationTabLabels = {
|
|
|
6973
6979
|
scoresHeading: "Puntuaciones",
|
|
6974
6980
|
addScoreHeading: "Añadir una puntuación",
|
|
6975
6981
|
reviewsHeading: "Revisiones",
|
|
6976
|
-
reviewsHint: "
|
|
6982
|
+
reviewsHint: "Una revisión usa un LLM para puntuar cada respuesta de esta evaluación. Las puntuaciones de las revisiones completadas aparecen bajo cada pregunta más abajo.",
|
|
6977
6983
|
reviewsRunningLabel: "en curso",
|
|
6978
6984
|
reviewsCompletedLabel: "completadas",
|
|
6979
6985
|
reviewsFailedLabel: "fallidas",
|
|
@@ -6995,75 +7001,92 @@ var evaluationTabLabels = {
|
|
|
6995
7001
|
scoresSuffixPlural: "puntuaciones"
|
|
6996
7002
|
},
|
|
6997
7003
|
evaluateModal: {
|
|
6998
|
-
title: "
|
|
6999
|
-
description: "Usa un LLM para puntuar cada
|
|
7004
|
+
title: "Nueva revisión",
|
|
7005
|
+
description: "Usa un LLM para puntuar cada respuesta de esta evaluación.",
|
|
7000
7006
|
criteriaLabel: "Criterios",
|
|
7007
|
+
criteriaInfo: "Cómo es una buena respuesta. El LLM lee esto y puntúa cada respuesta según ello.",
|
|
7001
7008
|
criteriaPlaceholder: "p. ej. Evalúa la respuesta según:\n1. Precisión\n2. Exhaustividad\n3. Claridad\nDa más peso a la precisión.",
|
|
7002
7009
|
scoreNameLabel: "Nombre de la puntuación",
|
|
7010
|
+
scoreNameInfo: "El nombre con el que aparecen estas puntuaciones en los resultados, como calidad o precisión.",
|
|
7003
7011
|
scoreNamePlaceholder: "p. ej. calidad",
|
|
7004
7012
|
maxConcurrencyLabel: "Concurrencia máxima",
|
|
7013
|
+
maxConcurrencyInfo: "Cuántas respuestas se puntúan a la vez, de 1 a 20. Un número más alto termina antes.",
|
|
7005
7014
|
llmLabel: "LLM",
|
|
7015
|
+
llmInfo: "El modelo que lee cada respuesta y la puntúa.",
|
|
7006
7016
|
selectLlmPlaceholder: "Seleccionar LLM",
|
|
7007
7017
|
cancel: "Cancelar",
|
|
7008
|
-
submit: "
|
|
7009
|
-
validationError: "
|
|
7010
|
-
successToast: "
|
|
7011
|
-
errorToast: "No se pudo iniciar la
|
|
7018
|
+
submit: "Iniciar revisión",
|
|
7019
|
+
validationError: "Introduce los criterios y un nombre de puntuación, y luego selecciona un LLM.",
|
|
7020
|
+
successToast: "Revisión iniciada",
|
|
7021
|
+
errorToast: "No se pudo iniciar la revisión.",
|
|
7012
7022
|
pickerTitle: "Seleccionar LLM",
|
|
7013
|
-
pickerDescription: "
|
|
7023
|
+
pickerDescription: "Selecciona un proveedor y luego un modelo.",
|
|
7014
7024
|
pickerSelectorAriaLabel: "Selector de modelo LLM",
|
|
7015
7025
|
pickerSearchPlaceholder: "Buscar proveedores...",
|
|
7016
|
-
pickerEmpty: "
|
|
7026
|
+
pickerEmpty: "No se encontraron proveedores",
|
|
7017
7027
|
pickerLogoAlt: "Logotipo de {name}"
|
|
7018
7028
|
},
|
|
7019
7029
|
deleteModal: {
|
|
7020
7030
|
title: "Eliminar evaluación",
|
|
7021
|
-
confirmation: "¿Seguro que quieres eliminar
|
|
7031
|
+
confirmation: "¿Seguro que quieres eliminar la evaluación \"{runName}\"? Esta acción no se puede deshacer.",
|
|
7022
7032
|
cancel: "Cancelar",
|
|
7023
7033
|
confirm: "Eliminar",
|
|
7024
7034
|
confirming: "Eliminando...",
|
|
7025
7035
|
successToast: "Evaluación eliminada",
|
|
7026
|
-
errorToast: "No se pudo eliminar la evaluación"
|
|
7036
|
+
errorToast: "No se pudo eliminar la evaluación."
|
|
7027
7037
|
},
|
|
7028
7038
|
card: {
|
|
7029
7039
|
status: "Estado",
|
|
7030
|
-
initiatedBy: "
|
|
7031
|
-
created: "
|
|
7040
|
+
initiatedBy: "Iniciada por",
|
|
7041
|
+
created: "Creada"
|
|
7032
7042
|
}
|
|
7033
7043
|
};
|
|
7034
7044
|
var benchmarksIndex = {
|
|
7035
|
-
searchPlaceholder: "Buscar benchmarks",
|
|
7045
|
+
searchPlaceholder: "Buscar benchmarks...",
|
|
7036
7046
|
searchAriaLabel: "Buscar benchmarks",
|
|
7037
7047
|
newBenchmark: "Nuevo benchmark",
|
|
7038
|
-
nameColumn: "
|
|
7039
|
-
descriptionColumn: "
|
|
7040
|
-
createdColumn: "
|
|
7041
|
-
actionsColumn: "
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
empty: "No se encontraron benchmarks"
|
|
7048
|
+
nameColumn: "NOMBRE",
|
|
7049
|
+
descriptionColumn: "DESCRIPCIÓN",
|
|
7050
|
+
createdColumn: "CREADO",
|
|
7051
|
+
actionsColumn: "ACCIONES",
|
|
7052
|
+
viewItems: "Ver preguntas y respuestas",
|
|
7053
|
+
viewItemsAriaLabel: "Ver preguntas y respuestas de {name}",
|
|
7054
|
+
empty: "No se encontraron benchmarks",
|
|
7055
|
+
emptyNone: "Tu organización aún no tiene benchmarks."
|
|
7045
7056
|
};
|
|
7046
7057
|
var benchmarksCreateBenchmarkModal = {
|
|
7047
7058
|
title: "Nuevo benchmark",
|
|
7048
|
-
description: "
|
|
7059
|
+
description: "Un benchmark es un conjunto de preguntas y respuestas esperadas para evaluar tus agentes.",
|
|
7049
7060
|
nameLabel: "Nombre",
|
|
7050
|
-
|
|
7061
|
+
nameInfo: "El nombre con el que eliges este benchmark al evaluar un agente. No se puede cambiar después.",
|
|
7062
|
+
namePlaceholder: "p. ej. preguntas-de-soporte",
|
|
7063
|
+
nameInvalid: "El nombre no puede contener una barra (/) ni estar formado solo por puntos.",
|
|
7064
|
+
nameTaken: "Ya existe un benchmark con este nombre. Escribe otro nombre.",
|
|
7051
7065
|
descriptionLabel: "Descripción",
|
|
7066
|
+
descriptionInfo: "Una nota breve sobre lo que cubre este benchmark. Aparece en la lista de benchmarks.",
|
|
7052
7067
|
descriptionPlaceholder: "¿Para qué es este benchmark?",
|
|
7053
|
-
|
|
7068
|
+
detailsTab: "Detalles",
|
|
7069
|
+
qaTab: "Preguntas y respuestas",
|
|
7070
|
+
qaHint: "Puedes omitir este paso y añadir preguntas y respuestas más tarde. Un benchmark necesita al menos una pregunta para poder ejecutar una evaluación.",
|
|
7054
7071
|
cancel: "Cancelar",
|
|
7072
|
+
close: "Cerrar",
|
|
7073
|
+
next: "Siguiente",
|
|
7055
7074
|
create: "Crear",
|
|
7056
|
-
|
|
7057
|
-
|
|
7075
|
+
saveQa: "Guardar preguntas y respuestas",
|
|
7076
|
+
successToast: "{count, plural, one {Benchmark creado con # par de pregunta y respuesta} other {Benchmark creado con # pares de pregunta y respuesta}}",
|
|
7077
|
+
successToastNoQa: "Benchmark creado. Añade preguntas y respuestas antes de ejecutar una evaluación.",
|
|
7078
|
+
createError: "No se pudo crear el benchmark. Inténtalo de nuevo.",
|
|
7079
|
+
qaError: "El benchmark se creó, pero no se pudieron guardar sus preguntas y respuestas. Revísalas e inténtalo de nuevo, o cierra esta ventana y añádelas más tarde."
|
|
7058
7080
|
};
|
|
7059
7081
|
var benchmarksBenchmarkItemsModal = {
|
|
7060
|
-
description: "
|
|
7082
|
+
description: "Los pares de pregunta y respuesta que se usan para evaluar agentes con este benchmark.",
|
|
7083
|
+
count: "{count, plural, one {# par de pregunta y respuesta} other {# pares de pregunta y respuesta}}",
|
|
7061
7084
|
addItems: "Añadir preguntas y respuestas",
|
|
7062
|
-
questionColumn: "
|
|
7063
|
-
answerColumn: "
|
|
7064
|
-
actionsColumn: "
|
|
7085
|
+
questionColumn: "PREGUNTA",
|
|
7086
|
+
answerColumn: "RESPUESTA",
|
|
7087
|
+
actionsColumn: "ACCIONES",
|
|
7065
7088
|
deleteItemAriaLabel: "Eliminar pregunta y respuesta",
|
|
7066
|
-
empty: "Este benchmark aún no tiene preguntas y respuestas"
|
|
7089
|
+
empty: "Este benchmark aún no tiene preguntas y respuestas."
|
|
7067
7090
|
};
|
|
7068
7091
|
var benchmarksDeleteItemConfirm = {
|
|
7069
7092
|
title: "Eliminar pregunta y respuesta",
|
|
@@ -7072,24 +7095,25 @@ var benchmarksDeleteItemConfirm = {
|
|
|
7072
7095
|
"delete": "Eliminar",
|
|
7073
7096
|
deleting: "Eliminando...",
|
|
7074
7097
|
successToast: "Pregunta y respuesta eliminadas",
|
|
7075
|
-
errorToast: "No se pudo eliminar la pregunta y respuesta"
|
|
7098
|
+
errorToast: "No se pudo eliminar la pregunta y respuesta."
|
|
7076
7099
|
};
|
|
7077
7100
|
var benchmarksAddItemsModal = {
|
|
7078
7101
|
title: "Añadir preguntas y respuestas a {name}",
|
|
7079
|
-
description: "
|
|
7102
|
+
description: "Escribe pares de pregunta y respuesta o sube un archivo CSV.",
|
|
7080
7103
|
manualTab: "Manual",
|
|
7081
7104
|
csvTab: "Subir CSV",
|
|
7082
7105
|
questionLabel: "Pregunta",
|
|
7106
|
+
questionInfo: "Lo que se le pregunta al agente.",
|
|
7083
7107
|
questionPlaceholder: "¿Qué es el aprendizaje automático?",
|
|
7084
7108
|
answerLabel: "Respuesta",
|
|
7109
|
+
answerInfo: "La respuesta que esperas del agente. Déjala en blanco si solo quieres ver lo que responde.",
|
|
7085
7110
|
answerPlaceholder: "Opcional",
|
|
7086
7111
|
removeRowAriaLabel: "Eliminar fila",
|
|
7087
7112
|
addRow: "Añadir fila",
|
|
7088
7113
|
cancel: "Cancelar",
|
|
7089
7114
|
add: "Añadir",
|
|
7090
|
-
rowRequired: "Añade al menos una fila con una pregunta",
|
|
7091
7115
|
addedToast: "{count, plural, one {Se añadió # par de pregunta y respuesta} other {Se añadieron # pares de pregunta y respuesta}}",
|
|
7092
|
-
|
|
7116
|
+
addError: "No se pudieron añadir las preguntas y respuestas. Inténtalo de nuevo.",
|
|
7093
7117
|
csvFormatTitle: "Formato CSV",
|
|
7094
7118
|
csvRuleEncoding: "Codificado en UTF-8",
|
|
7095
7119
|
csvRuleRequiredPrefix: "Columna obligatoria:",
|
|
@@ -7100,10 +7124,12 @@ var benchmarksAddItemsModal = {
|
|
|
7100
7124
|
csvRuleBlankSkipped: "Las filas sin pregunta se omiten",
|
|
7101
7125
|
downloadSample: "Descargar CSV de ejemplo",
|
|
7102
7126
|
csvFileLabel: "Archivo CSV",
|
|
7127
|
+
csvFileInfo: "Una lista de preguntas y respuestas guardada desde una hoja de cálculo como archivo CSV, con el formato indicado arriba.",
|
|
7103
7128
|
selectedFile: "Seleccionado: {name} ({size} KB)",
|
|
7104
|
-
|
|
7129
|
+
csvTooLarge: "Este archivo supera los 10 MB. Elige un archivo CSV más pequeño.",
|
|
7130
|
+
csvNoInputColumn: "La primera fila de este archivo necesita una columna llamada \"input\". Descarga el CSV de ejemplo para ver el formato.",
|
|
7105
7131
|
uploadedToast: "{count, plural, one {Se subió # par de pregunta y respuesta} other {Se subieron # pares de pregunta y respuesta}}",
|
|
7106
|
-
|
|
7132
|
+
uploadError: "No se pudo subir el archivo CSV. Comprueba que sigue el formato indicado arriba e inténtalo de nuevo.",
|
|
7107
7133
|
upload: "Subir"
|
|
7108
7134
|
};
|
|
7109
7135
|
var platformSidebar = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"es.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '../../ui/button.js';
|
|
3
|
+
import { Tooltip, TooltipTrigger, TooltipContent } from '../../ui/tooltip.js';
|
|
4
|
+
import { cn } from '../../../lib/utils.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The runs table of the Evals tab (`evaluation-tab/index.tsx`) is the
|
|
8
|
+
* reference: these are its classes, so every evals table has one header row,
|
|
9
|
+
* cell padding, text style, hover and radius. Change them together with it.
|
|
10
|
+
*/
|
|
11
|
+
const EVALS_TABLE = {
|
|
12
|
+
frame: 'overflow-hidden rounded-md border',
|
|
13
|
+
headerRow: 'bg-muted/50 h-[45px] border-b',
|
|
14
|
+
head: 'p-3 text-left text-sm whitespace-nowrap text-[#646464] dark:text-gray-400',
|
|
15
|
+
actionsHead: 'w-[104px] p-3 text-right text-sm whitespace-nowrap text-[#646464] dark:text-gray-400',
|
|
16
|
+
row: 'text-sm hover:bg-blue-50 dark:hover:bg-gray-800',
|
|
17
|
+
cell: 'p-3 text-gray-700 dark:text-gray-300',
|
|
18
|
+
actionsCell: 'p-3 text-right',
|
|
19
|
+
/** Puts the icon's right edge on the ACTIONS heading's right edge. */
|
|
20
|
+
rowAction: '-mr-2',
|
|
21
|
+
};
|
|
22
|
+
const EVALS_DIALOG = {
|
|
23
|
+
footer: 'gap-2 sm:space-x-0',
|
|
24
|
+
primaryButton: 'bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90',
|
|
25
|
+
spinner: 'h-4 w-4 animate-spin',
|
|
26
|
+
/** A title that carries a name: wraps instead of running under the close button. */
|
|
27
|
+
nameTitle: 'pr-6 leading-snug break-words',
|
|
28
|
+
/** The scrolling part of a tall dialog; the margins leave room for focus rings. */
|
|
29
|
+
scrollBody: '-mx-6 -my-1 min-h-0 flex-1 overflow-y-auto px-6 py-1',
|
|
30
|
+
loading: 'flex items-center justify-center py-10',
|
|
31
|
+
empty: 'py-10',
|
|
32
|
+
fieldError: 'text-xs text-red-500',
|
|
33
|
+
};
|
|
34
|
+
function IconAction({ label, tooltip, icon: Icon, destructive, disabled, onClick, className, }) {
|
|
35
|
+
return (jsxs(Tooltip, { delayDuration: 200, children: [jsx(TooltipTrigger, { asChild: true, children: jsx(Button, { type: "button", variant: "ghost", size: "icon", "aria-label": label, disabled: disabled, onClick: onClick, className: cn('h-8 w-8', destructive && 'hover:bg-red-50 hover:text-red-600', className), children: jsx(Icon, { className: "h-4 w-4", "aria-hidden": "true" }) }) }), jsx(TooltipContent, { className: "ibl-tooltip-content z-50", children: tooltip !== null && tooltip !== void 0 ? tooltip : label })] }));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { EVALS_DIALOG, EVALS_TABLE, IconAction };
|
|
39
|
+
//# sourceMappingURL=evals-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evals-ui.js","sources":["../../../../../../../../src/components/profile/benchmarks/evals-ui.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;AAQA;;;;AAIG;AACI,MAAM,WAAW,GAAG;AACzB,IAAA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B,EAAA,QAAA,EAAE,OAAO,KAAA,IAAA,IAAP,OAAO,cAAP,OAAO,GAAI,KAAK,EAAA,CAAkB,CAAA,EAAA,CAChF;AAEd;;;;"}
|
|
@@ -2,16 +2,17 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '../../../../ui/dialog.js';
|
|
4
4
|
import { Button } from '../../../../ui/button.js';
|
|
5
|
-
import {
|
|
6
|
-
import { Spinner } from '../../../../spinner/index.js';
|
|
5
|
+
import { ActivitySearchBox } from '../../../../activity-tab/activity-layout.js';
|
|
7
6
|
import { cn } from '../../../../../lib/utils.js';
|
|
7
|
+
import '../../../../activity-tab/activity-phone.js';
|
|
8
|
+
import '../../../../ui/pagination.js';
|
|
9
|
+
import { Spinner } from '../../../../spinner/index.js';
|
|
8
10
|
import { useGetLlmsQuery } from '@iblai/data-layer';
|
|
9
11
|
import { LLMProviderModal } from '../llm-tab/llm-provider-modal.js';
|
|
10
12
|
import { LLMProviderLogo } from '../llm-tab/provider-logo.js';
|
|
11
13
|
import { llmProviderLabel } from '../llm-tab/utils.js';
|
|
12
14
|
import Bot from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/bot.js';
|
|
13
15
|
import ChevronDown from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
14
|
-
import Search from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js';
|
|
15
16
|
|
|
16
17
|
function EvaluateLlmPicker({ tenantKey, username, mentorId, value, onChange, placeholder, pickerTitle, pickerDescription, selectorAriaLabel, searchPlaceholder, emptyMessage, logoAlt, disabled, }) {
|
|
17
18
|
var _a, _b, _c;
|
|
@@ -52,11 +53,11 @@ function EvaluateLlmPicker({ tenantKey, username, mentorId, value, onChange, pla
|
|
|
52
53
|
setSelectedProvider(null);
|
|
53
54
|
setShowProviders(false);
|
|
54
55
|
};
|
|
55
|
-
return (jsxs(Fragment, { children: [jsxs(Button, { type: "button", variant: "
|
|
56
|
+
return (jsxs(Fragment, { children: [jsxs(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => setShowProviders(true), "aria-label": selectorAriaLabel, className: "h-9 w-full cursor-pointer justify-start gap-2 bg-transparent px-3 text-sm font-normal", children: [(currentProvider === null || currentProvider === void 0 ? void 0 : currentProvider.logo) ? (jsx(LLMProviderLogo, { logo: currentProvider.logo, label: currentLabel, alt: logoAlt.replace('{name}', () => currentLabel), size: 20, className: "h-5 w-5 flex-shrink-0" })) : (jsx(Bot, { className: "h-5 w-5 flex-shrink-0 text-gray-400" })), jsx("span", { className: cn('min-w-0 flex-1 truncate text-left', !value && 'text-muted-foreground'), children: (value === null || value === void 0 ? void 0 : value.llm_name) || currentLabel || placeholder }), jsx(ChevronDown, { className: "h-4 w-4 shrink-0 opacity-50" })] }), jsx(Dialog, { open: showProviders, onOpenChange: (open) => !open && setShowProviders(false), children: jsxs(DialogContent, { "aria-label": "evaluate-llm-picker", className: "max-h-[90vh] w-full max-w-3xl overflow-y-auto", children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { children: pickerTitle }), jsx(DialogDescription, { children: pickerDescription })] }), jsx(ActivitySearchBox, { type: "text", placeholder: searchPlaceholder, "aria-label": searchPlaceholder, value: providerSearch, onChange: (event) => setProviderSearch(event.target.value) }), isLoading ? (jsx("div", { className: "flex items-center justify-center py-10", children: jsx(Spinner, {}) })) : (jsxs("div", { className: "grid grid-cols-2 gap-3 sm:grid-cols-3", children: [filteredProviders.map((model) => {
|
|
56
57
|
const label = llmProviderLabel(model);
|
|
57
58
|
const isCurrent = (value === null || value === void 0 ? void 0 : value.llm_provider) === model.name;
|
|
58
|
-
return (jsxs("button", { type: "button", onClick: () => handleProviderClick(model), className: cn('flex cursor-pointer items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 text-left shadow-sm transition-shadow hover:shadow-md', isCurrent && 'border-blue-500'), children: [jsx("div", { className: "h-8 w-8 flex-shrink-0", children: jsx(LLMProviderLogo, { logo: model.logo, label: label, alt: logoAlt.replace('{name}', label) }) }), jsx("span", { className: "
|
|
59
|
-
}), filteredProviders.length === 0 && (jsx("p", { className: "col-span-full py-
|
|
59
|
+
return (jsxs("button", { type: "button", onClick: () => handleProviderClick(model), "aria-pressed": isCurrent, className: cn('flex cursor-pointer items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 text-left shadow-sm transition-shadow hover:shadow-md', isCurrent && 'border-blue-500'), children: [jsx("div", { className: "h-8 w-8 flex-shrink-0", children: jsx(LLMProviderLogo, { logo: model.logo, label: label, alt: logoAlt.replace('{name}', () => label) }) }), jsx("span", { className: "min-w-0 text-sm font-medium break-words text-gray-900", children: label })] }, model.id));
|
|
60
|
+
}), filteredProviders.length === 0 && (jsx("p", { className: "col-span-full py-10 text-center text-sm text-[#646464]", children: emptyMessage }))] }))] }) }), selectedProvider && (jsx(LLMProviderModal, { isOpen: true, onClose: () => setSelectedProvider(null), onSelect: handleSelect, llmProvider: selectedProvider, isSelecting: false, mentorSettings: {
|
|
60
61
|
llm_name: (_b = value === null || value === void 0 ? void 0 : value.llm_name) !== null && _b !== void 0 ? _b : '',
|
|
61
62
|
llm_provider: (_c = value === null || value === void 0 ? void 0 : value.llm_provider) !== null && _c !== void 0 ? _c : '',
|
|
62
63
|
}, llms: (llmProviders !== null && llmProviders !== void 0 ? llmProviders : []) }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate-llm-picker.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/evaluation-tab/evaluate-llm-picker.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_Fragment","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"evaluate-llm-picker.js","sources":["../../../../../../../../../../src/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,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,KAAK,CAAC,GAC3C,EAAA,CACE,EACNA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,uDAAuD,EAAA,QAAA,EACpE,KAAK,EAAA,CACD,KAlBF,KAAK,CAAC,EAAE,CAmBN;gCAEb,CAAC,CAAC,EACD,iBAAiB,CAAC,MAAM,KAAK,CAAC,KAC7BA,GAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,wDAAwD,EAAA,QAAA,EAClE,YAAY,EAAA,CACX,CACL,CAAA,EAAA,CACG,CACP,IACa,EAAA,CACT,EAER,gBAAgB,KACfA,GAAA,CAAC,gBAAgB,EAAA,EACf,MAAM,EAAA,IAAA,EACN,OAAO,EAAE,MAAM,mBAAmB,CAAC,IAAI,CAAC,EACxC,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,gBAAgB,EAC7B,WAAW,EAAE,KAAK,EAClB,cAAc,EAAE;oBACd,QAAQ,EAAE,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE;oBAC/B,YAAY,EAAE,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE;AACxC,iBAAA,EACD,IAAI,GAAG,YAAY,aAAZ,YAAY,KAAA,MAAA,GAAZ,YAAY,GAAI,EAAE,CAAe,EAAA,CACxC,CACH,CAAA,EAAA,CACA;AAEP;;;;"}
|
|
@@ -42,12 +42,12 @@ function BenchmarkCombobox({ benchmarks, value, onChange, placeholder, searchPla
|
|
|
42
42
|
return benchmarks;
|
|
43
43
|
return benchmarks.filter((name) => name.toLowerCase().includes(query));
|
|
44
44
|
}, [benchmarks, search]);
|
|
45
|
-
const searchAndList = (jsxs(Fragment, { children: [jsxs("div", { className: "flex items-center border-b border-gray-200 px-3", children: [jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), jsx("input", { ref: inputRef, type: "text", value: search, onChange: (event) => setSearch(event.target.value), placeholder: searchPlaceholder, className: "flex h-11 w-full bg-transparent py-3 text-base placeholder:text-muted-foreground focus:outline-none md:h-9 md:text-sm" })] }), jsx("div", { className: "max-h-60 overflow-y-auto py-1", children: filtered.length === 0 ? (jsx("p", { className: "py-6 text-center text-sm text-
|
|
45
|
+
const searchAndList = (jsxs(Fragment, { children: [jsxs("div", { className: "flex items-center border-b border-gray-200 px-3", children: [jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), jsx("input", { ref: inputRef, type: "text", value: search, onChange: (event) => setSearch(event.target.value), placeholder: searchPlaceholder, className: "flex h-11 w-full bg-transparent py-3 text-base placeholder:text-muted-foreground focus:outline-none md:h-9 md:text-sm" })] }), jsx("div", { className: "max-h-60 overflow-y-auto py-1", children: filtered.length === 0 ? (jsx("p", { className: "py-6 text-center text-sm text-[#646464]", children: emptyMessage })) : (filtered.map((name) => {
|
|
46
46
|
const selected = name === value;
|
|
47
47
|
return (jsxs("button", { type: "button", onClick: () => {
|
|
48
48
|
onChange(name);
|
|
49
49
|
setOpen(false);
|
|
50
|
-
}, className: "relative flex min-h-11 w-full cursor-pointer items-center px-2 py-1.5 text-sm text-gray-800 hover:bg-blue-50 md:min-h-0", children: [jsx(Check, { className: cn('mr-2 h-4 w-4', selected ? 'opacity-100' : 'opacity-0') }), jsx("span", { className: "
|
|
50
|
+
}, className: "relative flex min-h-11 w-full cursor-pointer items-center px-2 py-1.5 text-sm text-gray-800 hover:bg-blue-50 md:min-h-0", children: [jsx(Check, { className: cn('mr-2 h-4 w-4 flex-none', selected ? 'opacity-100' : 'opacity-0') }), jsx("span", { className: "min-w-0 text-left break-words", children: name })] }, name));
|
|
51
51
|
})) })] }));
|
|
52
52
|
return (jsxs("div", { ref: containerRef, className: "relative w-full flex-none md:w-64", children: [jsxs("button", { type: "button", role: "combobox", "data-testid": "benchmark-combobox", "aria-expanded": open, disabled: disabled, onClick: () => setOpen((prev) => !prev), className: "flex h-11 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-1 text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:h-9", children: [jsx("span", { className: cn('truncate font-normal', !value && 'text-muted-foreground'), children: value || placeholder }), jsx(ChevronsUpDown, { className: "h-4 w-4 shrink-0 opacity-50" })] }), phone ? (jsx(ActivitySheet, { open: open, onClose: () => setOpen(false), title: placeholder, children: jsx("div", { "data-testid": "benchmark-combobox-dropdown", children: searchAndList }) })) : (open && (jsx("div", { "data-testid": "benchmark-combobox-dropdown", className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-md border border-gray-200 bg-white shadow-md", children: searchAndList })))] }));
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark-combobox.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;;;SAkBgB,iBAAiB,CAAC,EAChC,UAAU,EACV,KAAK,EACL,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,QAAQ,GACF,EAAA;AACN,IAAA,MAAM,KAAK,GAAG,gBAAgB,EAAE;AAChC,IAAA,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AAC7C,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC9C,MAAM,YAAY,GAAGA,cAAK,CAAC,MAAM,CAAiB,IAAI,CAAC;IACvD,MAAM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OAAO,UAAU;AAC7B,QAAA,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACxE,IAAA,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAExB,IAAA,MAAM,aAAa,IACjBC,4BACEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,iDAAiD,EAAA,QAAA,EAAA,CAC9DC,IAAC,MAAM,EAAA,EAAC,SAAS,EAAC,kCAAkC,GAAG,EACvDA,GAAA,CAAA,OAAA,EAAA,EACE,GAAG,EAAE,QAAQ,EACb,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAClD,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EAAC,uHAAuH,EAAA,CACjI,CAAA,EAAA,CACE,EACNA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,+BAA+B,EAAA,QAAA,EAC3C,QAAQ,CAAC,MAAM,KAAK,CAAC,IACpBA,WAAG,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"benchmark-combobox.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/evaluation-tab/benchmark-combobox.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;;;SAkBgB,iBAAiB,CAAC,EAChC,UAAU,EACV,KAAK,EACL,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,QAAQ,GACF,EAAA;AACN,IAAA,MAAM,KAAK,GAAG,gBAAgB,EAAE;AAChC,IAAA,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAGA,cAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;AAC7C,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,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EAAA,QAAA,EAEzH,aAAa,EAAA,CACV,CACP,CACF,CAAA,EAAA,CACG;AAEV;;;;"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { toast } from 'sonner';
|
|
3
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '../../../../ui/dialog.js';
|
|
3
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '../../../../ui/dialog.js';
|
|
4
4
|
import { Button } from '../../../../ui/button.js';
|
|
5
|
+
import { EVALS_DIALOG } from '../../../../profile/benchmarks/evals-ui.js';
|
|
5
6
|
import { useDeleteEvalRunMutation } from '@iblai/data-layer';
|
|
7
|
+
import LoaderCircle from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js';
|
|
6
8
|
|
|
7
9
|
function DeleteExperimentModal({ isOpen, onClose, tenantKey, username, datasetName, runName, labels, }) {
|
|
8
10
|
const [deleteRun, { isLoading }] = useDeleteEvalRunMutation();
|
|
9
11
|
const handleDelete = async () => {
|
|
10
|
-
var _a;
|
|
11
12
|
try {
|
|
12
13
|
await deleteRun({
|
|
13
14
|
org: tenantKey,
|
|
@@ -18,12 +19,11 @@ function DeleteExperimentModal({ isOpen, onClose, tenantKey, username, datasetNa
|
|
|
18
19
|
toast.success(labels.successToast);
|
|
19
20
|
onClose();
|
|
20
21
|
}
|
|
21
|
-
catch (
|
|
22
|
-
|
|
23
|
-
toast.error(detail || labels.errorToast);
|
|
22
|
+
catch (_a) {
|
|
23
|
+
toast.error(labels.errorToast);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
return (jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && !isLoading && onClose(), children: jsxs(DialogContent, { "aria-label": "delete-evaluation", className: "max-w-md
|
|
26
|
+
return (jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && !isLoading && onClose(), children: jsxs(DialogContent, { "aria-label": "delete-evaluation", className: "w-full max-w-md", children: [jsxs(DialogHeader, { className: "min-w-0", children: [jsx(DialogTitle, { children: labels.title }), jsx(DialogDescription, { className: "break-words", children: labels.confirmation.replace('{runName}', () => runName) })] }), jsxs(DialogFooter, { className: EVALS_DIALOG.footer, children: [jsx(Button, { type: "button", variant: "outline", onClick: onClose, disabled: isLoading, children: labels.cancel }), jsxs(Button, { type: "button", className: EVALS_DIALOG.primaryButton, onClick: handleDelete, disabled: isLoading, children: [isLoading && jsx(LoaderCircle, { className: EVALS_DIALOG.spinner }), isLoading ? labels.confirming : labels.confirm] })] })] }) }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { DeleteExperimentModal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-experiment-modal.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-experiment-modal.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/evaluation-tab/delete-experiment-modal.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","Loader2"],"mappings":";;;;;;;;SA6BgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,GACA,EAAA;IACN,MAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,wBAAwB,EAAE;AAE7D,IAAA,MAAM,YAAY,GAAG,YAAW;AAC9B,QAAA,IAAI;AACF,YAAA,MAAM,SAAS,CAAC;AACd,gBAAA,GAAG,EAAE,SAAS;AACd,gBAAA,MAAM,EAAE,QAAQ;gBAChB,WAAW;gBACX,OAAO;aACR,CAAC,CAAC,MAAM,EAAE;AACX,YAAA,KAAK,CAAC,OAAO,CAAC,MAAM,CA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CACxC,CAAA,EAAA,CACI,CAAA,EAAA,CACD,EAAA,CACT;AAEb;;;;"}
|
|
@@ -2,16 +2,17 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '../../../../ui/dialog.js';
|
|
4
4
|
import { Button } from '../../../../ui/button.js';
|
|
5
|
-
import {
|
|
6
|
-
import { Spinner } from '../../../../spinner/index.js';
|
|
5
|
+
import { ActivitySearchBox } from '../../../../activity-tab/activity-layout.js';
|
|
7
6
|
import { cn } from '../../../../../lib/utils.js';
|
|
7
|
+
import '../../../../activity-tab/activity-phone.js';
|
|
8
|
+
import '../../../../ui/pagination.js';
|
|
9
|
+
import { Spinner } from '../../../../spinner/index.js';
|
|
8
10
|
import { useGetLlmsQuery } from '@iblai/data-layer';
|
|
9
11
|
import { LLMProviderModal } from '../llm-tab/llm-provider-modal.js';
|
|
10
12
|
import { LLMProviderLogo } from '../llm-tab/provider-logo.js';
|
|
11
13
|
import { llmProviderLabel } from '../llm-tab/utils.js';
|
|
12
14
|
import Bot from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/bot.js';
|
|
13
15
|
import ChevronDown from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
14
|
-
import Search from '../../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js';
|
|
15
16
|
|
|
16
17
|
function EvaluateLlmPicker({ tenantKey, username, mentorId, value, onChange, placeholder, pickerTitle, pickerDescription, selectorAriaLabel, searchPlaceholder, emptyMessage, logoAlt, disabled, }) {
|
|
17
18
|
var _a, _b, _c;
|
|
@@ -52,11 +53,11 @@ function EvaluateLlmPicker({ tenantKey, username, mentorId, value, onChange, pla
|
|
|
52
53
|
setSelectedProvider(null);
|
|
53
54
|
setShowProviders(false);
|
|
54
55
|
};
|
|
55
|
-
return (jsxs(Fragment, { children: [jsxs(Button, { type: "button", variant: "
|
|
56
|
+
return (jsxs(Fragment, { children: [jsxs(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => setShowProviders(true), "aria-label": selectorAriaLabel, className: "h-9 w-full cursor-pointer justify-start gap-2 bg-transparent px-3 text-sm font-normal", children: [(currentProvider === null || currentProvider === void 0 ? void 0 : currentProvider.logo) ? (jsx(LLMProviderLogo, { logo: currentProvider.logo, label: currentLabel, alt: logoAlt.replace('{name}', () => currentLabel), size: 20, className: "h-5 w-5 flex-shrink-0" })) : (jsx(Bot, { className: "h-5 w-5 flex-shrink-0 text-gray-400" })), jsx("span", { className: cn('min-w-0 flex-1 truncate text-left', !value && 'text-muted-foreground'), children: (value === null || value === void 0 ? void 0 : value.llm_name) || currentLabel || placeholder }), jsx(ChevronDown, { className: "h-4 w-4 shrink-0 opacity-50" })] }), jsx(Dialog, { open: showProviders, onOpenChange: (open) => !open && setShowProviders(false), children: jsxs(DialogContent, { "aria-label": "evaluate-llm-picker", className: "max-h-[90vh] w-full max-w-3xl overflow-y-auto", children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { children: pickerTitle }), jsx(DialogDescription, { children: pickerDescription })] }), jsx(ActivitySearchBox, { type: "text", placeholder: searchPlaceholder, "aria-label": searchPlaceholder, value: providerSearch, onChange: (event) => setProviderSearch(event.target.value) }), isLoading ? (jsx("div", { className: "flex items-center justify-center py-10", children: jsx(Spinner, {}) })) : (jsxs("div", { className: "grid grid-cols-2 gap-3 sm:grid-cols-3", children: [filteredProviders.map((model) => {
|
|
56
57
|
const label = llmProviderLabel(model);
|
|
57
58
|
const isCurrent = (value === null || value === void 0 ? void 0 : value.llm_provider) === model.name;
|
|
58
|
-
return (jsxs("button", { type: "button", onClick: () => handleProviderClick(model), className: cn('flex cursor-pointer items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 text-left shadow-sm transition-shadow hover:shadow-md', isCurrent && 'border-blue-500'), children: [jsx("div", { className: "h-8 w-8 flex-shrink-0", children: jsx(LLMProviderLogo, { logo: model.logo, label: label, alt: logoAlt.replace('{name}', label) }) }), jsx("span", { className: "
|
|
59
|
-
}), filteredProviders.length === 0 && (jsx("p", { className: "col-span-full py-
|
|
59
|
+
return (jsxs("button", { type: "button", onClick: () => handleProviderClick(model), "aria-pressed": isCurrent, className: cn('flex cursor-pointer items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 text-left shadow-sm transition-shadow hover:shadow-md', isCurrent && 'border-blue-500'), children: [jsx("div", { className: "h-8 w-8 flex-shrink-0", children: jsx(LLMProviderLogo, { logo: model.logo, label: label, alt: logoAlt.replace('{name}', () => label) }) }), jsx("span", { className: "min-w-0 text-sm font-medium break-words text-gray-900", children: label })] }, model.id));
|
|
60
|
+
}), filteredProviders.length === 0 && (jsx("p", { className: "col-span-full py-10 text-center text-sm text-[#646464]", children: emptyMessage }))] }))] }) }), selectedProvider && (jsx(LLMProviderModal, { isOpen: true, onClose: () => setSelectedProvider(null), onSelect: handleSelect, llmProvider: selectedProvider, isSelecting: false, mentorSettings: {
|
|
60
61
|
llm_name: (_b = value === null || value === void 0 ? void 0 : value.llm_name) !== null && _b !== void 0 ? _b : '',
|
|
61
62
|
llm_provider: (_c = value === null || value === void 0 ? void 0 : value.llm_provider) !== null && _c !== void 0 ? _c : '',
|
|
62
63
|
}, llms: (llmProviders !== null && llmProviders !== void 0 ? llmProviders : []) }))] }));
|