From 880ff93ca44dc6db412ec222c0433ff713afad83 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 14 Mar 2024 02:18:58 +0900 Subject: [PATCH] Update _gen.py (#72) minor fix --- controllers/guidance_ctrl/Lib/guidance/library/_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/guidance_ctrl/Lib/guidance/library/_gen.py b/controllers/guidance_ctrl/Lib/guidance/library/_gen.py index 2f9b3c39..11ec793c 100644 --- a/controllers/guidance_ctrl/Lib/guidance/library/_gen.py +++ b/controllers/guidance_ctrl/Lib/guidance/library/_gen.py @@ -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 @@ -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() \ No newline at end of file + return lm + tool.call_grammar + tool.tool_call()