diff --git a/llgtrt/src/routes/completions.rs b/llgtrt/src/routes/completions.rs index 228a9b4..4e7be42 100644 --- a/llgtrt/src/routes/completions.rs +++ b/llgtrt/src/routes/completions.rs @@ -8,8 +8,7 @@ use axum::response::{IntoResponse, Response}; use axum::Json; use futures_core::Stream; use llguidance_parser::api::{RegexSpec, TopLevelGrammar}; -use llguidance_parser::lark::{lark_to_llguidance, parse_lark}; -use llguidance_parser::{Constraint, GrammarBuilder, JsonCompileOptions}; +use llguidance_parser::{lark_to_llguidance, Constraint, GrammarBuilder, JsonCompileOptions}; use serde_json::{json, Value}; use std::fmt::Display; use std::sync::Arc; @@ -177,7 +176,7 @@ fn llg_grammar(params: &CommonCreateParams) -> Result> { } Some(ResponseFormat::LarkGrammar { lark_grammar }) => { log::debug!("using Lark grammar"); - lark_to_llguidance(parse_lark(lark_grammar)?)? + lark_to_llguidance(lark_grammar)? } _ => return Ok(None), }; diff --git a/llguidance b/llguidance index 1108f6e..e9ddf73 160000 --- a/llguidance +++ b/llguidance @@ -1 +1 @@ -Subproject commit 1108f6edddf96ae143036cc4609da0560249e41c +Subproject commit e9ddf73a0a4b4d48a2daa8ecfd4928dc90a7e332