You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
The Python SDK does not currently map the ChatMessage.author_name field to OpenAI's optional "name" field when sending messages to the OpenAI completion API.
This field is useful for identifying different participants in conversations.
Current Behavior
In the Python implementation, the ChatMessage class has an author_name attribute.
However, when converting messages to OpenAI format in _openai_chat_message_parser(), the author_name is not included:
File: python/packages/core/agent_framework/openai/_chat_client.py:364-393
Expected Behavior
The author_name should be mapped to OpenAI's "name" field when present, similar to how the .NET implementation handles it.
string? name = SanitizeAuthorName(input.AuthorName);
Activity
[-]Python: Support OpenAI message "name" field[/-][+].NET: Python: Support OpenAI message "name" field[/+][-].NET: Python: Support OpenAI message "name" field[/-][+]Python: Support OpenAI message "name" field[/+]added note on naming and fix microsoft#2951
added note on naming and fix microsoft#2951
added note on naming and fix microsoft#2951
Python: cleanup and refactoring of chat clients (#2937)
Python: [Durabletask] Update `feature-durabletask-python` branch with…
.NET: Python: Merge main into feature-durabletask-python branch (#3160)
Python: Merge `main` into `feature-durabletask-python` branch (#3261)
.NET: Python: Merge `main` into `feature-durabletask` branch (#3385)
Python: Merge `durabletask` changes into `main` (#3420)
Python: cleanup and refactoring of chat clients (microsoft#2937)