Skip to content

Commit

Permalink
Bump outlines-core to v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Feb 11, 2025
1 parent 69418da commit 81f1997
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 64 deletions.
2 changes: 1 addition & 1 deletion benchmarks/bench_json_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from outlines_core.fsm.json_schema import build_regex_from_schema
from outlines_core.json_schema import build_regex_from_schema

from outlines.caching import cache_disabled
from outlines.fsm.guide import RegexGuide
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/chain_of_thought.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ We could generate a response using the json schema but for a change we will use

```python
from outlines.fsm.json_schema import convert_json_schema_to_str
from outlines_core.fsm.json_schema import build_regex_from_schema
from outlines_core.json_schema import build_regex_from_schema

schema_str = convert_json_schema_to_str(json_schema=json_schema)
regex_str = build_regex_from_schema(schema_str)
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/react_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ We could generate a response using the json schema but we will use the regex and

```python
from outlines.fsm.json_schema import convert_json_schema_to_str
from outlines_core.fsm.json_schema import build_regex_from_schema
from outlines_core.json_schema import build_regex_from_schema

json_schema = Decision.model_json_schema()
schema_str = convert_json_schema_to_str(json_schema=json_schema)
Expand Down
Loading

0 comments on commit 81f1997

Please sign in to comment.