diff --git a/crates/core/src/built_in_functions.rs b/crates/core/src/built_in_functions.rs index ff9530c13..96314fa9e 100644 --- a/crates/core/src/built_in_functions.rs +++ b/crates/core/src/built_in_functions.rs @@ -501,15 +501,15 @@ pub fn get_ai_placeholder_functions() -> Option { BuiltInFunction::new( "llm_chat", vec!["model", "messages", "pattern"], - Box::new(ai_fn_placholder), + Box::new(ai_fn_placeholder), ), - BuiltInFunction::new("embedding", vec!["target"], Box::new(ai_fn_placholder)), + BuiltInFunction::new("embedding", vec!["target"], Box::new(ai_fn_placeholder)), ] .into(), ) } -fn ai_fn_placholder<'a>( +fn ai_fn_placeholder<'a>( _args: &'a [Option>], _context: &'a MarzanoContext<'a>, _state: &mut State<'a, MarzanoQueryContext>, diff --git a/crates/core/src/problem.rs b/crates/core/src/problem.rs index 727db5907..0d7ed3498 100644 --- a/crates/core/src/problem.rs +++ b/crates/core/src/problem.rs @@ -74,7 +74,7 @@ impl Problem { &self.function_definitions, ); // We use the first 3 indexes for auto-wrap stuff in production - if self.pattern_definitions.len() > 10 { + if self.pattern_definitions.len() >= 3 { defs.skippable_indexes = vec![0, 1, 2]; } defs