Atome-FE / llama-node

Believe in AI democratization. llama for nodejs backed by llama-rs, llama.cpp and rwkv.cpp, work locally on your laptop CPU. support llama/alpaca/gpt4all/vicuna/rwkv model.
https://llama-node.vercel.app/
Apache License 2.0
865 stars 63 forks source link

fix: utf8 encode issue #49

Closed yorkzero831 closed 1 year ago

yorkzero831 commented 1 year ago

accoriding to https://github.com/saharNooby/rwkv.cpp/blob/master/rwkv/chat_with_bot.py#L250-L257

prompt: 你好啊

previous: ,我是一名AI��天��器人,我可以回��你的问��和提供����。请问有��么我可以����你的��? after: ,我是一名AI聊天机器人,我可以回答你的问题和提供帮助。请问有什么我可以帮助你的吗?

yorkzero831 commented 1 year ago

@hlhr202 Could you have a look at this?

hlhr202 commented 1 year ago

@yorkzero831 could you please help fix the clippy error?