[GH-ISSUE #5355] Groq's "name" option within "messages" parameter of the chat endpoint payload #65390

Open
opened 2026-05-03 21:08:36 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @pmgh2345 on GitHub (Jun 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5355

Groq has a really helpful option within the "messages" parameter that one would provide in the payload to their chat completion API that helps the model distinguish between multiple users of the same role. This is helpful for situations in which a multi-agent conversation is taking place and there is more than one agent in a given role--for example, a roleplay in which we want to differentiate between an assistant representing one personality with its own system prompt talking to another assistant representing another agent with its own system prompt, all chatting with the user role.

For more on this, please see the following link to the Groq docs https://console.groq.com/docs/text-chat under the "messages" parameter.

Originally created by @pmgh2345 on GitHub (Jun 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5355 Groq has a really helpful option within the "messages" parameter that one would provide in the payload to their chat completion API that helps the model distinguish between multiple users of the same role. This is helpful for situations in which a multi-agent conversation is taking place and there is more than one agent in a given role--for example, a roleplay in which we want to differentiate between an assistant representing one personality with its own system prompt talking to another assistant representing another agent with its own system prompt, all chatting with the user role. For more on this, please see the following link to the Groq docs https://console.groq.com/docs/text-chat under the "messages" parameter.
GiteaMirror added the feature requestapi labels 2026-05-03 21:08:36 -05:00
Author
Owner

@marklysze commented on GitHub (Jun 28, 2024):

@pmgh2345, would you know what that actually does? If you asked the question "What is my name" would Groq respond with what was in that field?

<!-- gh-comment-id:2197301806 --> @marklysze commented on GitHub (Jun 28, 2024): @pmgh2345, would you know what that actually does? If you asked the question "What is my name" would Groq respond with what was in that field?
Author
Owner

@pmgh2345 commented on GitHub (Jun 28, 2024):

@marklysze I believe that is the intention provided that the last message of the payload makes use of this parameter with the "user" role, however, I don't have Groq to confirm whether or not the model will actually discern a conventional "name" as such, or whether it simply uses the different names to discern one point of view vis a vis another in those situations where this is relevant.

<!-- gh-comment-id:2197637797 --> @pmgh2345 commented on GitHub (Jun 28, 2024): @marklysze I believe that is the intention provided that the last message of the payload makes use of this parameter with the "user" role, however, I don't have Groq to confirm whether or not the model will actually discern a conventional "name" as such, or whether it simply uses the different names to discern one point of view vis a vis another in those situations where this is relevant.
Author
Owner

@marklysze commented on GitHub (Jun 28, 2024):

Thanks @pmgh2345, sounds interesting...

<!-- gh-comment-id:2197762949 --> @marklysze commented on GitHub (Jun 28, 2024): Thanks @pmgh2345, sounds interesting...
Author
Owner

@acerix commented on GitHub (Dec 13, 2025):

As an example, llmcord supports name to make messages in a conversation "user identity aware" so the users can be mentioned in replies, specified by this system prompt:

User's names are their Discord IDs and should be typed as '<@ID>'

0a29e100ef/llmcord.py (L251)

<!-- gh-comment-id:3649794224 --> @acerix commented on GitHub (Dec 13, 2025): As an example, [llmcord](https://github.com/jakobdylanc/llmcord) supports `name` to make messages in a conversation "user identity aware" so the users can be mentioned in replies, specified by this system prompt: `User's names are their Discord IDs and should be typed as '<@ID>'` https://github.com/jakobdylanc/llmcord/blob/0a29e100efccb806539793016e72951e273756ad/llmcord.py#L251
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65390