diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index 9244661e87da..c08c56a68533 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -36,14 +36,14 @@ buildPythonPackage rec { pname = "guidance"; - version = "0.2.0"; + version = "0.2.1"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "guidance"; tag = version; - hash = "sha256-dZfz/P4+dTHdGFhLAdwX0D/QRdojqNy8+UCbFk0QeTM="; + hash = "sha256-FBnND9kCIVmE/IEz3TNOww8x0EAH6TTBYfKTprqSbDg="; }; build-system = [ @@ -91,11 +91,6 @@ buildPythonPackage rec { disabledTests = [ # require network access - "test_commit_point" - "test_fstring" - "test_fstring_custom" - "test_gpt2" - "test_image_from_bytes" "test_ll_backtrack_stop" "test_ll_dolphin" "test_ll_fighter" @@ -106,26 +101,12 @@ buildPythonPackage rec { "test_ll_pop_tokens" "test_ll_stop_quote_comma" "test_llparser" - "test_local_image" - "test_openai_chat_without_roles" - "test_openai_class_detection" - "test_recursion_error" - "test_remote_image" - "test_remote_image_not_found" - "test_select_simple" "test_str_method_smoke" - "test_token_count" - "test_token_healing" # flaky tests "test_remote_mock_gen" # frequently fails when building packages in parallel ]; - disabledTestPaths = [ - # require network access - "tests/unit/test_tokenizers.py" - ]; - preCheck = '' rm tests/conftest.py ''; diff --git a/pkgs/development/python-modules/llguidance/default.nix b/pkgs/development/python-modules/llguidance/default.nix index 19d2d2253b79..578f9ddeb45f 100644 --- a/pkgs/development/python-modules/llguidance/default.nix +++ b/pkgs/development/python-modules/llguidance/default.nix @@ -23,19 +23,19 @@ buildPythonPackage rec { pname = "llguidance"; - version = "0.7.11"; + version = "0.7.19"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "llguidance"; tag = "v${version}"; - hash = "sha256-d0xwBaWiBBlPrKHpDKDBINBGU+PCfpfnL4FOxNmFvG8="; + hash = "sha256-tfTiut8jiGGf2uQLGcC4ieNf4ePFauJZL6vNbWie078="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit src; - hash = "sha256-UeBgYMYFAVSa6QQIqZ2iY+xIRxQdFBetZ7dIalim+FQ="; + hash = "sha256-I1sjkZgtsBpPVkGL596TjLi9txRmgP5oTIWaM1K5I1E="; }; build-system = [ @@ -75,8 +75,11 @@ buildPythonPackage rec { [ # Require internet access (https://huggingface.co) "test_grammar" - "test_par_grammar" + "test_incomplete_tokenizer" "test_par_errors" + "test_par_grammar" + "test_tokenize_partial_basic" + "test_tokenize_partial_docs" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # torch._inductor.exc.CppCompileError: C++ compile error @@ -95,6 +98,7 @@ buildPythonPackage rec { meta = { description = "Super-fast Structured Outputs"; homepage = "https://github.com/guidance-ai/llguidance"; + changelog = "https://github.com/guidance-ai/llguidance/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; };