Skip to content

Commit

Permalink
Update _gen.py
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
eltociear authored Mar 13, 2024
1 parent 3896f74 commit d969355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/guidance_ctrl/Lib/guidance/library/_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def gen(lm, name=None, *, max_tokens=1000, list_append=False, regex=None,
Parameters
----------
name : str or None
If this is not None then the the results of the generation will be saved as a variable on
If this is not None then the results of the generation will be saved as a variable on
the Model object (so you can access the result as `lm["var_name"]`).
max_tokens : int
Expand Down Expand Up @@ -236,4 +236,4 @@ def will_gen(lm, stop=None, stop_regex=None, ignore_spaces=False, max_tokens=30)

@guidance
def call_tool(lm, tool):
return lm + tool.call_grammar + tool.tool_call()
return lm + tool.call_grammar + tool.tool_call()

0 comments on commit d969355

Please sign in to comment.