Skip to content

use openai cli "chat_completions.create" failed to generate a response of sufficient length, and setting "--max-tokens" did not work. #283

@oiuv

Description

@oiuv

Describe the bug

use openai cli “chat_completions.create" failed to generate a response of sufficient length, and setting "--max-tokens" did not work.

To Reproduce

By default, the number of tokens the model can return will be (4096 - prompt tokens). but not in cli mode

Code snippets

openai api chat_completions.create  -m gpt-3.5-turbo -g user '请给出10个使用chatGPT的示例'

OS

Ubuntu

Python version

Python v3.10.6

Library version

openai v0.27.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions