Skip to content

Make usage of name field in OpenAI messages optional in OpenAIChatCompletionClient #6034

@ekzhu

Description

@ekzhu

Confirmation

  • I confirm that I am a maintainer and so can use this template. If I am not, I understand this issue will be closed and I will be asked to use a different template.

Issue body

Many "openai-compatible" model providers don't support the name field in message.

e.g, https://console.groq.com/docs/openai

Add include_name_in_message parameter to BaseOpenAIChatCompletionClient, and add to BaseOpenAIClientConfiguration. Default should be True.

For model APIs that don't support this field, we document in the usage guide about this option so they can make the model client work with those model APIs.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions