Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlelarge committed Jul 12, 2023
1 parent 48b91ea commit 11bd915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Here is a simple Outlines program that highlights some of its key features:
hello_world = where_from("Hello world")
foobar = where_from("Foo Bar")
answer = complete([hello_world, foobar], num_samples=3, stop_at=["."])
answer = complete([hello_world, foobar], samples=3, stop_at=["."])
- **Prompt management**. You can use functions with the ``@outlines.text.prompt`` decorator. "Prompt functions" use the `Jinja templating language <https://jinja.palletsprojects.com/en/3.1.x/>`_ to render the prompt written in the docstring. We also added a few filters to help with common worflows, like building agents. Of course, for simple prompts, you can also use Python strings directly.
Expand Down
2 changes: 1 addition & 1 deletion outlines/text/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_schema_dict(model: Dict):


@get_schema.register(type(BaseModel))
def get_schema_pydantic(model: type[BaseModel]):
def get_schema_pydantic(model: type(BaseModel)):
"""Return the schema of a Pydantic model."""
if not type(model) == type(BaseModel):
raise TypeError("The `schema` filter only applies to Pydantic models.")
Expand Down

0 comments on commit 11bd915

Please sign in to comment.