Skip to content

[JS] [compat-oai] Error "Model 'openai/gpt-4.1' does not support multiple messages" #3370

@Tyg-g

Description

@Tyg-g

Describe the bug

Error message Model 'openai/gpt-4.1' does not support multiple messages. The model should support multiple messages. It worked with the package genkitx-openai.

To Reproduce

a .prompt file with multiple {{ role "user" }} lines.

Expected behavior

Normal response from the LLM.

Screenshots

NA.

Runtime (please complete the following information):

  • OS: Linux | Kubuntu
  • Version: 24.10

** Node version

v20.16.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjs

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions