Skip to content

Commit

Permalink
Fix json_schema imports in cot example
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjthomas9 authored and rlouf committed Jan 5, 2025
1 parent d32dfde commit 3cc399d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cookbook/chain_of_thought.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ json_schema = Reasoning.model_json_schema()
We could generate a response using the json schema but for a change we will use the regex:

```python
from outlines.integrations.utils import convert_json_schema_to_str
from outlines.fsm.json_schema import build_regex_from_schema
from outlines.fsm.json_schema import convert_json_schema_to_str
from outlines_core.fsm.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

0 comments on commit 3cc399d

Please sign in to comment.