Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提问后查看日志报错 #31

Open
dfaofeng opened this issue Mar 13, 2023 · 2 comments
Open

提问后查看日志报错 #31

dfaofeng opened this issue Mar 13, 2023 · 2 comments

Comments

@dfaofeng
Copy link

dfaofeng commented Mar 13, 2023

版本是2.0.6
错误信息

2023-03-13 14:16:14 [I] @tomlbz/openai/eye private message, Alice: ai现在北京时间
w-koishi-1  | 2023-03-13 14:16:16 [I] @tomlbz/openai Input Keywords: ["北京时间"]
w-koishi-1  | 2023-03-13 14:16:16 [W] session ai现在北京时间
session ai   aaa
w-koishi-1  |                         TypeError: Cannot read properties of undefined (reading 'length')
w-koishi-1  |                             at Eye.basePrompt (/koishi/node_modules/@tomlbz/koishi-plugin-openai/lib/eye.js:123:30)
w-koishi-1  |                             at /koishi/node_modules/@tomlbz/koishi-plugin-openai/lib/index.js:87:30
w-koishi-1  |                             at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
w-koishi-1  |                             at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:853:16)
w-koishi-1  |                             at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:853:16)
w-koishi-1  |                             at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:853:16)
w-koishi-1  |                             at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:853:16)
w-koishi-1  |                             at async Processor._handleMessage (/koishi/node_modules/@koishijs/core/lib/index.cjs:864:22)
@StringKe
Copy link

StringKe commented Mar 16, 2023

2023-03-16 15:00:53 [I] @tomlbz/openai/ai OpenAI Connected. Chat model: gpt-3.5-turbo
2023-03-16 15:00:54 [I] @tomlbz/openai/soul Mem(Long+Cache), TransL(Google), Search(Google)
2023-03-16 15:00:56 [I] @tomlbz/openai/soul Pinecone: us-east-1-aws/bot, Dimension: 4096
2023-03-16 15:00:56 [I] @tomlbz/openai/eye Eye Created. Available names: 图灵
2023-03-16 15:00:56 [I] @tomlbz/openai/cache Cache loaded from cache/cache.json
2023-03-16 15:00:56 [I] @tomlbz/openai Initialization: AI(√) Soul(√) Eye(√) Cache(√)
2023-03-16 15:01:16 [I] @tomlbz/openai/eye private message, xxxxxxx: 你好
2023-03-16 15:01:18 [I] @tomlbz/openai Input Keywords: []
2023-03-16 15:01:20 [W] session 你好
AxiosError: Request failed with status code 400
at settle (/Users/chen/Project/Bots/node_modules/.pnpm/axios@1.1.3/node_modules/axios/dist/node/axios.cjs:1268:12)
at IncomingMessage.handleStreamEnd (/Users/chen/Project/Bots/node_modules/.pnpm/axios@1.1.3/node_modules/axios/dist/node/axios.cjs:2446:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-03-16 15:01:24 [I] @tomlbz/openai/eye appelled, xxxxxxx: 如果人类创造出物质飞越空间的技术,需要多久时间
2023-03-16 15:01:27 [I] @tomlbz/openai Input Keywords: ["多久","技术"]
2023-03-16 15:01:27 [W] session 如果人类创造出物质飞越空间的技术,需要多久时间
TypeError: Cannot read properties of undefined (reading 'length')

@TomLBZ
Copy link
Owner

TomLBZ commented Apr 2, 2023

2.0.8是否还有这个问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants