Improve docs & Add JSON decode example (#121)
This commit is contained in:
@@ -34,7 +34,7 @@ character_regex = (
|
||||
|
||||
# fmt: off
|
||||
def character_gen(name, generate):
|
||||
s = name+ " is a character in Harry Potter. Please fill in the following information about him/her.\n"
|
||||
s = name + " is a character in Harry Potter. Please fill in the following information about this character.\n"
|
||||
s += generate(s, max_tokens=256, regex=character_regex)
|
||||
return s
|
||||
# fmt: on
|
||||
|
||||
@@ -32,7 +32,7 @@ character_regex = (
|
||||
# fmt: off
|
||||
@sgl.function
|
||||
def character_gen(s, name):
|
||||
s += name+ " is a character in Harry Potter. Please fill in the following information about him/her.\n"
|
||||
s += name + " is a character in Harry Potter. Please fill in the following information about this character.\n"
|
||||
s += sgl.gen("json_output", max_tokens=256, regex=character_regex)
|
||||
# fmt: on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user