Optimierung KI-Scuhe + Ki-Überarbeitungen der Übungen #49
|
|
@ -27,6 +27,8 @@ import {
|
||||||
} from '../utils/exerciseAiQuickCreate'
|
} from '../utils/exerciseAiQuickCreate'
|
||||||
|
|
||||||
const PAGE_SIZE = 100
|
const PAGE_SIZE = 100
|
||||||
|
/** Backend POST /api/planning/exercise-suggest erlaubt max. 50 */
|
||||||
|
const PLANNING_SUGGEST_LIMIT = 50
|
||||||
const LEVEL_FILTER_OPTS = SKILL_LEVEL_OPTIONS.filter((o) => o.level != null)
|
const LEVEL_FILTER_OPTS = SKILL_LEVEL_OPTIONS.filter((o) => o.level != null)
|
||||||
|
|
||||||
const INITIAL_FILTERS = { ...INITIAL_EXERCISE_LIST_FILTERS }
|
const INITIAL_FILTERS = { ...INITIAL_EXERCISE_LIST_FILTERS }
|
||||||
|
|
@ -358,7 +360,7 @@ export default function ExercisePickerModal({
|
||||||
include_llm_rank: Boolean(query),
|
include_llm_rank: Boolean(query),
|
||||||
query,
|
query,
|
||||||
intent_hint: activePlanningContext.intentHint || (useFreePlanningSearch && query ? 'free_search' : null),
|
intent_hint: activePlanningContext.intentHint || (useFreePlanningSearch && query ? 'free_search' : null),
|
||||||
limit: PAGE_SIZE,
|
limit: PLANNING_SUGGEST_LIMIT,
|
||||||
exercise_kind_any:
|
exercise_kind_any:
|
||||||
Array.isArray(exerciseKindAny) && exerciseKindAny.length > 0 ? exerciseKindAny : undefined,
|
Array.isArray(exerciseKindAny) && exerciseKindAny.length > 0 ? exerciseKindAny : undefined,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user