Skip to content

Commit

Permalink
Fix typo in load_tokenizer's ArgumentError
Browse files Browse the repository at this point in the history
A prior commit 8b52612 removed the concept of tokenizer modules and
introduced tokenizer types. As part of the change, the sole expected
option for the `load_tokenizer` function was changed from `:module` to
`:type`.

Unfortunately the commit missed out on changing the error message, which
could cause slight confusion amongst devs that use `load_tokenizer` when
upgrading bumblebee from pre-v0.5.0.
  • Loading branch information
chaychoong committed Aug 15, 2024
1 parent f1c3fe9 commit 96dc9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bumblebee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ defmodule Bumblebee do
type

{:error, error} ->
raise ArgumentError, "#{error}, please specify the :module option"
raise ArgumentError, "#{error}, please specify the :type option"
end

tokenizer_config_result =
Expand Down

0 comments on commit 96dc9a7

Please sign in to comment.