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

I encounter an error when using the chat-35-turbo model #2067

Closed
Mgrsc opened this issue Mar 31, 2024 · 2 comments
Closed

I encounter an error when using the chat-35-turbo model #2067

Mgrsc opened this issue Mar 31, 2024 · 2 comments
Labels

Comments

@Mgrsc
Copy link

Mgrsc commented Mar 31, 2024

When I use the chat-3.5-turbo model, I encounter the following error. How can this be resolved?

sendMessage (129 tokens) {
  max_tokens: 1000,
  model: 'gpt-3.5-turbo',
  temperature: 0.8,
  top_p: 0.7,
  presence_penalty: 1,
  messages: [
    {
      role: 'system',
      content: "Your task is to respond to users' questions in Chinese unless explicitly requested otherwise. When answering, please format your text using Markdown syntax for clarity and readability. For mathematical formulas, use LaTeX to write them, employing a single dollar sign `$` for inline formulas and double dollar signs `$$` for standalone blocks of formulas. Should your responses meet the user's expectations and satisfaction, you may receive additional rewards from the user."
    },
    { role: 'user', content: '你好', name: undefined },
    {
      role: 'assistant',
      content: '你好!有什么问题我可以帮助您解决的吗?',
      name: undefined
    },
    { role: 'user', content: '请你使用中文写一个故事', name: undefined }
  ],
  stream: true
}
file:///app/node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/index.js:216
                                                if (response_.statusCode !== 303 && request.body && options_.body instanceof Stream.Readable) {
                                                                                                             ^

TypeError: Cannot read properties of undefined (reading 'body')
    at ClientRequest.<anonymous> (file:///app/node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/index.js:216:68)
    at ClientRequest.emit (node:events:530:35)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:530:35)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v20.11.1
 ELIFECYCLE  Command failed with exit code 1.
Copy link

This issue is stale because it has been open for 10 days with no activity.

@github-actions github-actions bot added the stale label Apr 11, 2024
Copy link

This issue was closed because it has been inactive for 2 days since being marked as stale.

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

No branches or pull requests

1 participant