Repository navigation
Releases
Releases · dottxt-ai/outlines
Outlines v1.3.3
What's Changed
- Support PEP 604 unions (int | str) as output types by @sohumt123 in #1932
- fix: reject negative counts in exactly/at_least/at_most/between by @chuenchen309 in #1922
- fix: raise clearly instead of asserting on a rejected XGrammar token by @chuenchen309 in #1923
- fix(models): handle nullable object type (list form) in additionalProperties pass by @ErenAta16 in #1918
- fix: reject leading-zero octets in the ipv4 type by @NishchayMahor in #1904
- fix: reject leading-zero octets in ipv6 IPv4-mapped addresses by @NishchayMahor in #1936
- fix(processors): NumpyTensorAdapter.apply_mask doesn't broadcast a lower-rank mask like torch's masked_fill by @chuenchen309 in #1927
- fix(types): don't treat instance methods on Enum output types as choices by @ErenAta16 in #1916
- Fix template whitespace collapse merging lines on trailing whitespace by @lntutor in #1935
- fix(types): get_enum_from_literal/get_enum_from_choice drop values that collide under str() by @chuenchen309 in #1926
- Generate the API reference from src/outlines by @ritsth in #1913
- Add hex_color and slug custom types by @pepepeboom in #1934
- fix(vllm): _build_client_args mutates caller's extra_body dict across calls by @feiiiiii5 in #1933
- fix(sglang): _build_client_args clobbers user's extra_body instead of merging by @chuenchen309 in #1925
- Render Optional enum/nested fields in the schema filter by @ritsth in #1930
- fix: only set additionalProperties on object schemas by @vidigoat in #1909
- docs: add Requesty model documentation by @Thibaultjaigu in #1919
- fix(sglang): copy caller extra_body before merging structured outputs by @Solaris-star in #1937
- fix(types): quote non-string Dict keys so generated output is valid JSON by @ErenAta16 in #1917
- Update contribution guide to include AI use rules by @RobinPicard in #1953
- Add the credit_card custom type by @dhanavanthesh in #1945
- fix(gemini): pass the system message as a system instruction by @Kaif10 in #1967
- fix(models): make TransformerTokenizer.eq agree with hash by @ErenAta16 in #1977
- docs: fix the constr() calls in the dating profiles example by @ErenAta16 in #1972
- feat(types): add iban and bic custom types by @josephkehan-prog in #1979
- Add e164, latitude, and longitude custom types by @uditmahato in #1966
New Contributors
- @sohumt123 made their first contribution in #1932
- @chuenchen309 made their first contribution in #1922
- @NishchayMahor made their first contribution in #1904
- @lntutor made their first contribution in #1935
- @pepepeboom made their first contribution in #1934
- @feiiiiii5 made their first contribution in #1933
- @vidigoat made their first contribution in #1909
- @Thibaultjaigu made their first contribution in #1919
- @Solaris-star made their first contribution in #1937
- @Kaif10 made their first contribution in #1967
- @josephkehan-prog made their first contribution in #1979
- @uditmahato made their first contribution in #1966
Full Changelog: 1.3.2...1.3.3
Outlines v1.3.2
What's Changed
- fix(types): map JSON Schema const to a Literal by @sarathfrancis90 in #1894
- fix: reject invalid day '00' in the date type regex by @hoangsonww in #1897
- fix(exceptions): don't require a provider's optional SDK to normalize errors by @Sanjays2402 in #1898
- fix(vllm): send structured_outputs instead of removed guided_* keys by @pablopupo in #1888
- Escape regex metacharacters in numeric literal constraints by @ritsth in #1902
- Stop omitting lmstudio.py from the coverage report by @ErenAta16 in #1906
- Handle enum refs in prompt schema rendering by @lxingy3 in #1886
- Add documentation for the LM Studio model by @okaditya84 in #1899
- Fix crash on a union of >=2 non-None members plus None by @iamsharduld in #1881
- Docs/fix reorg broken links by @ritsth in #1907
- Fix the JsonSchema whitespace_pattern being ignored by the backend by @dhanavanthesh in #1924
New Contributors
- @hoangsonww made their first contribution in #1897
- @Sanjays2402 made their first contribution in #1898
- @pablopupo made their first contribution in #1888
- @ritsth made their first contribution in #1902
- @ErenAta16 made their first contribution in #1906
- @lxingy3 made their first contribution in #1886
- @okaditya84 made their first contribution in #1899
- @dhanavanthesh made their first contribution in #1924
Full Changelog: 1.3.1...1.3.2
Outlines v1.3.1
What's Changed
- Add semver and MAC address custom types by @Yeuvoir in #1863
- Update docs with OrcaRouter guide by @xilema2 in #1865
- fix(types): handle bool instances in python_types_to_terms for Literal[True/False] by @devteamaegis in #1869
- Add ipv6 custom type by @u7k4rs6 in #1867
- Fix unformatted f-string in List type error message by @tan7vir in #1870
- Docs: remove stale content by @plpxsk in #1873
- Pin down actions to specific SHA to comply with org rule by @RobinPicard in #1885
- Accept unsigned exponents in the number type regex by @JSap0914 in #1877
- Emit {0,n} for at_most so the regex compiles on the outlines-core backend by @lollinng in #1871
- Remove unused Llama tokenizer detection by @palios-taey in #1875
- Mark non-required JSON-schema properties NotRequired in TypedDict conversion by @iamsharduld in #1883
- Honor parameter defaults in get_schema_from_signature by @iamsharduld in #1882
- fix: make json-schema-derived dataclasses kw_only so optional-before-required fields don't crash by @CrypticCortex in #1872
- fix(dsl): keep None unquoted for Optional nested in containers by @sarathfrancis90 in #1880
- fix(types): convert JSON Schema type arrays to a Union by @sarathfrancis90 in #1889
- Migrate to src layout by @Youssefares in #1879
- Fix the documentation preview workflow by @RobinPicard in #1891
- Pull Ollama vision model to fix failing multimodal tests by @RobinPicard in #1893
New Contributors
- @Yeuvoir made their first contribution in #1863
- @xilema2 made their first contribution in #1865
- @devteamaegis made their first contribution in #1869
- @u7k4rs6 made their first contribution in #1867
- @tan7vir made their first contribution in #1870
- @JSap0914 made their first contribution in #1877
- @lollinng made their first contribution in #1871
- @palios-taey made their first contribution in #1875
- @iamsharduld made their first contribution in #1883
- @CrypticCortex made their first contribution in #1872
- @sarathfrancis90 made their first contribution in #1880
- @Youssefares made their first contribution in #1879
Full Changelog: 1.3.0...1.3.1
Outlines v1.3.0
What's Changed
- Fix error message for model type determination by @Reslan-Tinawi in #1862
- Implement uniform exceptions classes across model providers by @plpxsk in #1823
New Contributors
- @Reslan-Tinawi made their first contribution in #1862
- @plpxsk made their first contribution in #1823
Full Changelog: 1.2.13...1.3.0
Minor Breaking Change: API-based models (OpenAI, Anthropic...) are now raising standardized errors in case of API errors (outlines.exceptions). Make sure to update your code if you were catching specific exceptions from your provider. Information on Outlines standardized exceptions can be found here
Outlines v1.2.12
What's Changed
- Fix XDG_CACHE_HOME double .cache in path construction by @jnMetaCode in #1828
- fix(llamacpp): correct EOS attention mask and vocab truncation bugs by @giulio-leone in #1820
- fix(dsl): add JSON double-quotes to string literals inside container types by @giulio-leone in #1821
- fix: accumulate duplicate token IDs in vocabulary construction by @RoloPineda in #1831
- fix: inline SPIECE_UNDERLINE fallback for transformers compat by @giulio-leone in #1832
- fix: preserve all token IDs when multiple BPE tokens decode to same string by @alvinttang in #1833
- Fix documentation preview action + update uv.lock by @RobinPicard in #1838
- Update the Dottxt model by @RobinPicard in #1845
- Pin the version of dottxt to >=0.2 in the pyproject by @RobinPicard in #1857
- Refactor _check_chat_template method to improve tokenizer compatibility checks by @Ki-Seki in #1855
- Handle both HF tokenizer and mlx tokenizer wrapper for the MLXLM model by @RobinPicard in #1848
New Contributors
- @jnMetaCode made their first contribution in #1828
- @giulio-leone made their first contribution in #1820
- @RoloPineda made their first contribution in #1831
- @alvinttang made their first contribution in #1833
Full Changelog: 1.2.12...1.2.13
Outlines v1.2.12
What's Changed
- Add a link to the audit form in the README and the doc website by @RobinPicard in #1822
Full Changelog: 1.2.11...1.2.12
Outlines v1.2.11
What's Changed
- Add documentation preview when opening a PR by @RobinPicard in #1818
Full Changelog: 1.2.10...1.2.11
Outlines v1.2.10
What's Changed
- Correct mlx-lm example unpacking operator by @Anri-Lombard in #1786
- Remove todos by @Anri-Lombard in #1788
- fix: correct chat format usage by @Ki-Seki in #1790
- Add AsyncOllama to all exports by @Anri-Lombard in #1791
- fix: Best-effort use of chat completion by @Ki-Seki in #1789
- Fix bug in JsonSchema resulting in the schema validation not running by @RobinPicard in #1795
- Update the is_int_instance to exclude booleans by @RobinPicard in #1799
- Have the _handle_list function gives an explicit error if no args by @RobinPicard in #1801
- Initial lm studio integration by @Anri-Lombard in #1787
- Add sentencepiece to transformers optional dependencies by @majiayu000 in #1796
- Add a step in the GitHub actions to cache HF models by @RobinPicard in #1807
- Upgrade outlines_core and update imports by @RobinPicard in #1808
- Add a step to free disk space in the CI by @RobinPicard in #1804
- Fix typo in vision argument of Ollama by @RobinPicard in #1811
- Move from supported Python version from 3.9-3.12 to 3.10-3.13 by @RobinPicard in #1813
- Add architecture documentation to the Guide section by @majiayu000 in #1797
- Add parametrized Transformers smoke test for tokenizer robustness by @kudos07 in #1814
- Fix a bug in the Transformers tokenizer by @RobinPicard in #1817
New Contributors
- @Anri-Lombard made their first contribution in #1786
- @majiayu000 made their first contribution in #1796
- @kudos07 made their first contribution in #1814
Full Changelog: 1.2.9...1.2.10
Outlines v1.2.9
What's Changed
- fix: Refactor sampling parameters in VLLMOffline to use StructuredOutputsParams by @Ki-Seki in #1779
- docs: clarify use of
SamplingParamsin model response examples by @Ki-Seki in #1777 - Update the uv.lock by @RobinPicard in #1783
New Contributors
Full Changelog: 1.2.8...1.2.9
Outlines v1.2.8
What's Changed
- Use uv sync in the CI instead of pip install by @RobinPicard in #1767
- Fix error in the batch method of the MLXLM model by @RobinPicard in #1772
Full Changelog: 1.2.7...1.2.8