ipex-llm
ipex-llm copied to clipboard
Fix bug for embed function
Description
In the source code, the "encode_kwargs" parameter doesn't play the role it should play, resulting in that user cannot control the tokenizer encoding process.
According to the source code, I found that the reason for this error is that the parameters are not passed into the "embed" function normally.
Summary of the change
I changed four lines of code to correct the logic of function argument passing, so that the "encode_kwargs" argument does what it should.