Skip to content

Allow max_tokens = -1 for ChatOpenAI #1532

@adlindenberg

Description

@adlindenberg

The Chat API allows for not passing a max_tokens param and it's supported for other LLMs in langchain by passing -1 as the value. Could you extend support to the ChatOpenAI model? Something like the image seems to work?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions