Skip to content

Releases

Outlines v1.3.3

Choose a tag to compare

@RobinPicard RobinPicard released this 06 Aug 12:26

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

Full Changelog: 1.3.2...1.3.3

Outlines v1.3.2

Choose a tag to compare

@RobinPicard RobinPicard released this 20 Jul 06:32

What's Changed

New Contributors

Full Changelog: 1.3.1...1.3.2

Outlines v1.3.1

Choose a tag to compare

@RobinPicard RobinPicard released this 30 Jun 10:06

What's Changed

New Contributors

Full Changelog: 1.3.0...1.3.1

Outlines v1.3.0

Choose a tag to compare

@RobinPicard RobinPicard released this 13 May 14:49

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

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

Choose a tag to compare

@RobinPicard RobinPicard released this 04 May 15:10

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

Full Changelog: 1.2.12...1.2.13

Outlines v1.2.12

Choose a tag to compare

@RobinPicard RobinPicard released this 03 Mar 11:06

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

Choose a tag to compare

@RobinPicard RobinPicard released this 13 Feb 07:16

What's Changed

Full Changelog: 1.2.10...1.2.11

Outlines v1.2.10

Choose a tag to compare

@RobinPicard RobinPicard released this 06 Feb 07:30

What's Changed

New Contributors

Full Changelog: 1.2.9...1.2.10

Outlines v1.2.9

Choose a tag to compare

@RobinPicard RobinPicard released this 24 Nov 12:48

What's Changed

  • fix: Refactor sampling parameters in VLLMOffline to use StructuredOutputsParams by @Ki-Seki in #1779
  • docs: clarify use of SamplingParams in 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

Choose a tag to compare

@RobinPicard RobinPicard released this 27 Oct 10:59

What's Changed

Full Changelog: 1.2.7...1.2.8