agentic icon indicating copy to clipboard operation
agentic copied to clipboard

Additional properties are not allowed ('id' was unexpected) - 'messages.0'

Open leviluo opened this issue 1 year ago • 3 comments

Verify latest release

  • [X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

  • [X] I verify that the ChatGPT webapp is working properly for this account.

Environment details

nodejs 18.15

Describe the Bug

my code: const { ChatGPTUnofficialProxyAPI } = await import('chatgpt') const api = new ChatGPTUnofficialProxyAPI({ model:"gpt-3.5-turbo", accessToken: "sk-***", apiReverseProxyUrl: 'https:///v1/chat/completions' }) const res = await api.sendMessage(text)

reply: Error: ChatGPT error 400: { "error": { "message": "Additional properties are not allowed ('id' was unexpected) - 'messages.0'", "type": "invalid_request_error", "param": null, "code": null } }

leviluo avatar Apr 06 '23 12:04 leviluo

same

ShingWalker avatar Apr 17 '23 08:04 ShingWalker

some

gvao avatar Jun 16 '23 20:06 gvao

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.

transitive-bullshit avatar Jun 07 '24 06:06 transitive-bullshit