Skip to content

Commit

Permalink
fixed guided test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbu233 committed Aug 3, 2024
1 parent 0caa98b commit 1bdeb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/entrypoints/llm/test_guided_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def test_guided_grammar(sample_sql_statements, llm):
sampling_params = SamplingParams(
temperature=0.8,
top_p=0.95,
max_tokens=1000,
)
outputs = llm.generate(
prompts=("Generate a sql state that select col_1 from "
Expand All @@ -127,7 +128,6 @@ def test_guided_grammar(sample_sql_statements, llm):

generated_text = output.outputs[0].text
assert generated_text is not None

# use Lark to parse the output, and make sure it's a valid parse tree
from lark import Lark
parser = Lark(sample_sql_statements)
Expand Down

0 comments on commit 1bdeb0e

Please sign in to comment.