Skip to content

Commit

Permalink
update llguidance
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Nov 8, 2024
1 parent 1c5038b commit ea3b912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions llgtrt/src/routes/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -177,7 +176,7 @@ fn llg_grammar(params: &CommonCreateParams) -> Result<Option<TopLevelGrammar>> {
}
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),
};
Expand Down
2 changes: 1 addition & 1 deletion llguidance

0 comments on commit ea3b912

Please sign in to comment.