TomLBZ / koishi-plugin-openai

Calls OpenAI API for Koishi.js
48 stars 10 forks source link

没有使用Bing API时,中文聊天导致乱码 #23

Closed TomLBZ closed 1 year ago

TomLBZ commented 1 year ago
          `2023-03-07 10:51:49 [I] @tomlbz/openai/eye name called, 1456326316: @凌音 你觉得我的话有什么问题?

2023-03-07 10:51:49 [I] @tomlbz/openai/soul/search Knowledge Mode: google 2023-03-07 10:52:06 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:52:09 [I] @tomlbz/openai/eye Keywords: none 2023-03-07 10:52:09 [I] @tomlbz/openai/eye Knowledge: 不一定可靠的网络信息:[�ܤ_龙��对�⭵�A剧��说���O没��爱�u���\���A��剧���X来���ĪG��爱无��G�����A�A�A�]���ڡA�O�ڪ������C���]为��们��场对�ߡA��对�A����却����爱�C] 2023-03-07 10:52:09 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:52:14 [I] @tomlbz/openai/cache Saving cache... 2023-03-07 10:52:14 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:52:16 [I] @tomlbz/openai/eye Keywords: none 2023-03-07 10:55:05 [I] @tomlbz/openai/eye appelled, 1456326316: how are you 2023-03-07 10:55:05 [I] @tomlbz/openai/soul/search Knowledge Mode: google 2023-03-07 10:55:10 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:55:11 [I] @tomlbz/openai/eye Keywords: none 2023-03-07 10:55:11 [I] @tomlbz/openai/eye Knowledge: 不一定可靠的网络信息:[Let's sing about our feelings in this fun and popular Dream English Song. Original Song by Matt ...Duration: Posted: ] 2023-03-07 10:55:11 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:55:18 [I] @tomlbz/openai/ai Chat model: gpt-3.5-turbo 2023-03-07 10:55:20 [I] @tomlbz/openai/eye Keywords: 信息,网络`

用中文聊天似乎会导致搜索乱码,且机器人回复“我不明白你的意思”。用英文可以正确搜索,但搜索信息后面会跟一些杂乱信息,且机器人回复“我很好,但你的话后面跟了一些奇怪的信息”。 我没有使用bing翻译api,要用api应该要注册Azure账户,这需要visa卡,对国内部分用户来说有些困难。

Originally posted by @Pafffffff in https://github.com/TomLBZ/koishi-plugin-openai/issues/17#issuecomment-1457434023

TomLBZ commented 1 year ago

这个乱码情况一直复现不出来