Skip to content

Commit

Permalink
Fix readme to reflect routing through enum
Browse files Browse the repository at this point in the history
  • Loading branch information
farnasirim authored and rlouf committed Jan 17, 2025
1 parent 8b173a3 commit 063291d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class Operation(Enum):
mul = partial(mul)

model = outlines.models.transformers("WizardLM/WizardMath-7B-V1.1")
generator = outlines.generate.json(model, add)
generator = outlines.generate.json(model, Operation)
result = generator("Return json with two float named c and d respectively. c is negative and d greater than 1.0.")

print(result)
Expand Down

0 comments on commit 063291d

Please sign in to comment.