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

Unrecognized request argument supplied: maxChatCompletions | Object literal may only specify known properties, and maxChatCompletions does not exist in type: #899

Open
1 task done
flexchar opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@flexchar
Copy link

flexchar commented Jun 14, 2024

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

Attempting to set maxChatCompletions parameter as described here throws error in TypeScript and API response.

'Unrecognized request argument supplied: maxChatCompletions'

To Reproduce

Follow the example. Let me know if reproducible is needed. I suspect mismatch in documentation.

Code snippets

const runner = openai.beta.chat.completions.runTools({
        maxChatCompletions: 3,
        model: 'gpt-3.5-turbo',
        messages: [...]
});

OS

macOS

Node version

Node 22

Library version

4.51.0

@flexchar flexchar added the bug Something isn't working label Jun 14, 2024
@flexchar flexchar changed the title Object literal may only specify known properties, and maxChatCompletions does not exist in type: Unrecognized request argument supplied: maxChatCompletions | Object literal may only specify known properties, and maxChatCompletions does not exist in type: Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant