Skip to content

Commit

Permalink
run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 22, 2024
1 parent 5569b66 commit 1dd6b81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/core/src/built_in_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,15 +501,15 @@ pub fn get_ai_placeholder_functions() -> Option<BuiltIns> {
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<Pattern<MarzanoQueryContext>>],
_context: &'a MarzanoContext<'a>,
_state: &mut State<'a, MarzanoQueryContext>,
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/problem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dd6b81

Please sign in to comment.